diff --git a/modules/dnn/cmake/libprotobuf.cmake b/modules/dnn/3rdparty/protobuf/CMakeLists.txt similarity index 83% rename from modules/dnn/cmake/libprotobuf.cmake rename to modules/dnn/3rdparty/protobuf/CMakeLists.txt index 36e4a7876..aace92033 100644 --- a/modules/dnn/cmake/libprotobuf.cmake +++ b/modules/dnn/3rdparty/protobuf/CMakeLists.txt @@ -1,3 +1,5 @@ +project(libprotobuf) + include(CheckIncludeFiles) include(cmake/CheckCxxHashset.cmake) include(cmake/CheckCxxHashmap.cmake) @@ -89,13 +91,13 @@ endif() add_definitions( -D_GNU_SOURCE=1 ) add_definitions( -DHAVE_CONFIG_H ) -configure_file("cmake/libporobuf_config.h.in" "config.h") +configure_file("cmake/config.h.in" "config.h") if(MSVC) add_definitions( -D_CRT_SECURE_NO_WARNINGS=1 ) ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4244 /wd4267 /wd4018 /wd4355 /wd4800 /wd4251 /wd4996 /wd4146 /wd4305) else() - ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-deprecated -Wunused-parameter -Wunused-local-typedefs -Wsign-compare -Wundef) + ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-deprecated -Wshadow -Wmissing-declarations -Wunused-parameter -Wunused-local-typedefs -Wsign-compare -Wsign-promo -Wundef) endif() # Easier to support different versions of protobufs @@ -105,15 +107,15 @@ function(append_if_exist OUTPUT_LIST) if(EXISTS ${fil}) list(APPEND ${OUTPUT_LIST} "${fil}") else() - message("Warning: file missing: ${fil}") + message(WARNING "file missing: ${fil}") endif() endforeach() set(${OUTPUT_LIST} ${${OUTPUT_LIST}} PARENT_SCOPE) endfunction() -set(PROTOBUF_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/protobuf) +set(PROTOBUF_ROOT ${CMAKE_CURRENT_SOURCE_DIR}) -append_if_exist(PROTO_SRCS +append_if_exist(PROTOBUF_SRCS ${PROTOBUF_ROOT}/src/google/protobuf/compiler/importer.cc ${PROTOBUF_ROOT}/src/google/protobuf/compiler/parser.cc ${PROTOBUF_ROOT}/src/google/protobuf/descriptor.cc @@ -149,4 +151,26 @@ append_if_exist(PROTO_SRCS ${PROTOBUF_ROOT}/src/google/protobuf/wire_format.cc ${PROTOBUF_ROOT}/src/google/protobuf/wire_format_lite.cc # ${PROTOBUF_ROOT}/src/google/protobuf/stubs/hash.cc -) \ No newline at end of file +) + +if(UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR CV_ICC)) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") +endif() + +add_library(libprotobuf STATIC ${PROTOBUF_SRCS}) +include_directories(${PROTOBUF_ROOT}/src ${CMAKE_CURRENT_BINARY_DIR}) + +set_target_properties(libprotobuf + PROPERTIES + OUTPUT_NAME libprotobuf + DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}" + ARCHIVE_OUTPUT_DIRECTORY ${3P_LIBRARY_OUTPUT_PATH} + ) + +if(ENABLE_SOLUTION_FOLDERS) + set_target_properties(libprotobuf PROPERTIES FOLDER "3rdparty") +endif() + +#if(NOT BUILD_SHARED_LIBS) +# ocv_install_target(libprotobuf EXPORT OpenCVModules ARCHIVE DESTINATION ${OPENCV_3P_LIB_INSTALL_PATH} COMPONENT dev) +#endif() \ No newline at end of file diff --git a/modules/dnn/3rdparty/protobuf/cmake/.gitignore b/modules/dnn/3rdparty/protobuf/cmake/.gitignore new file mode 100644 index 000000000..fe06a514f --- /dev/null +++ b/modules/dnn/3rdparty/protobuf/cmake/.gitignore @@ -0,0 +1,2 @@ +build +build-* diff --git a/modules/dnn/cmake/CheckCxxHashmap.cmake b/modules/dnn/3rdparty/protobuf/cmake/CheckCxxHashmap.cmake similarity index 99% rename from modules/dnn/cmake/CheckCxxHashmap.cmake rename to modules/dnn/3rdparty/protobuf/cmake/CheckCxxHashmap.cmake index e52659507..122c512b4 100644 --- a/modules/dnn/cmake/CheckCxxHashmap.cmake +++ b/modules/dnn/3rdparty/protobuf/cmake/CheckCxxHashmap.cmake @@ -53,4 +53,3 @@ macro(CHECK_HASHMAP) endif(NOT HAVE_GNU_EXT_HASH_MAP) endmacro(CHECK_HASHMAP) - diff --git a/modules/dnn/cmake/CheckCxxHashset.cmake b/modules/dnn/3rdparty/protobuf/cmake/CheckCxxHashset.cmake similarity index 100% rename from modules/dnn/cmake/CheckCxxHashset.cmake rename to modules/dnn/3rdparty/protobuf/cmake/CheckCxxHashset.cmake diff --git a/modules/dnn/cmake/LICENSE b/modules/dnn/3rdparty/protobuf/cmake/LICENSE similarity index 100% rename from modules/dnn/cmake/LICENSE rename to modules/dnn/3rdparty/protobuf/cmake/LICENSE diff --git a/modules/dnn/cmake/libporobuf_config.h.in b/modules/dnn/3rdparty/protobuf/cmake/config.h.in similarity index 100% rename from modules/dnn/cmake/libporobuf_config.h.in rename to modules/dnn/3rdparty/protobuf/cmake/config.h.in diff --git a/modules/dnn/CMakeLists.txt b/modules/dnn/CMakeLists.txt index bfb55142e..4f1acb799 100644 --- a/modules/dnn/CMakeLists.txt +++ b/modules/dnn/CMakeLists.txt @@ -5,13 +5,13 @@ if(${CMAKE_PROJECT_NAME} STREQUAL "OpenCV")#build as OpenCV module set(the_description "Deep neural network module. It allows to load models and to make forward pass") set(OPENCV_MODULE_IS_PART_OF_WORLD OFF) -OCV_OPTION(BUILD_LIBPROTOBUF_FROM_SOURCES "Build libprotobuf from sources or try to find it in system" OFF) +OCV_OPTION(BUILD_LIBPROTOBUF_FROM_SOURCES "Force to build libprotobuf from sources (don't try to find it in system)" OFF) include(cmake/find_protobuf.cmake) ocv_add_module(dnn opencv_imgproc opencv_core opencv_highgui WRAP python matlab) ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-shadow -Wno-parentheses -Wmaybe-uninitialized -Wsign-promo -Wmissing-declarations -Wmissing-prototypes) -ocv_glob_module_sources(${PROTO_SRCS} ${PROTO_HDRS}) -ocv_source_group("Src\\protobuf" FILES ${PROTO_SRCS} ${PROTO_HDRS}) +ocv_glob_module_sources(${PROTOBUF_SRCS} ${PROTOBUF_HDRS}) +ocv_source_group("Src\\protobuf" FILES ${PROTOBUF_SRCS} ${PROTOBUF_HDRS}) ocv_module_include_directories(include ${PROTOBUF_INCLUDE_DIR}) ocv_create_module(${PROTOBUF_LIBRARIES}) diff --git a/modules/dnn/cmake/find_protobuf.cmake b/modules/dnn/cmake/find_protobuf.cmake index 4577adeae..cbcb8b969 100644 --- a/modules/dnn/cmake/find_protobuf.cmake +++ b/modules/dnn/cmake/find_protobuf.cmake @@ -5,7 +5,7 @@ endif() if(NOT BUILD_LIBPROTOBUF_FROM_SOURCES AND PROTOBUF_FOUND AND EXISTS ${PROTOBUF_PROTOC_EXECUTABLE}) message(STATUS "The protocol buffer compiler and libprotobuf were found") - PROTOBUF_GENERATE_CPP(PROTO_HDRS PROTO_SRCS src/caffe/caffe.proto) + PROTOBUF_GENERATE_CPP(PROTOBUF_HDRS PROTOBUF_SRCS src/caffe/caffe.proto) add_definitions(-DHAVE_PROTOBUF=1) else() if(NOT PROTOBUF_FOUND) @@ -14,12 +14,23 @@ else() message(STATUS "The protocol buffer compiler not found") endif() - include(cmake/libprotobuf.cmake) - set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) + if(NOT OPENCV_INITIAL_PASS) + add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/protobuf) + endif() + + add_custom_command( + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/caffe.pb.cc + ${CMAKE_CURRENT_BINARY_DIR}/caffe.pb.h + COMMAND ${CMAKE_COMMAND} -E tar xzf ${CMAKE_CURRENT_SOURCE_DIR}/src/caffe/compiled/caffe.tar.gz + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMENT "Unpacking compiled caffe protobuf files" + VERBATIM + ) - set(PROTOBUF_INCLUDE_DIR ${PROTOBUF_ROOT}/src ${CMAKE_CURRENT_SOURCE_DIR}/src/caffe/compiled) - list(APPEND PROTO_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/src/caffe/compiled/caffe.pb.cc) - set(PROTOBUF_LIBRARIES "") + set(PROTOBUF_LIBRARIES libprotobuf) + set(PROTOBUF_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/protobuf/src ${CMAKE_CURRENT_BINARY_DIR}) + set(PROTOBUF_SRCS ${CMAKE_CURRENT_BINARY_DIR}/caffe.pb.cc) + set(PROTOBUF_HDRS ${CMAKE_CURRENT_BINARY_DIR}/caffe.pb.h) set(PROTOBUF_PROTOC_EXECUTABLE "") add_definitions(-DHAVE_PROTOBUF=1) endif() \ No newline at end of file diff --git a/modules/dnn/src/caffe/compiled/caffe.pb.cc b/modules/dnn/src/caffe/compiled/caffe.pb.cc deleted file mode 100644 index 67a678c4d..000000000 --- a/modules/dnn/src/caffe/compiled/caffe.pb.cc +++ /dev/null @@ -1,26878 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: caffe.proto - -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION -#include "caffe.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) - -namespace caffe { - -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* 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_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::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* 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* DataParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - DataParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* DataParameter_DB_descriptor_ = 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* 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* 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::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* 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* 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* 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* 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::EnumDescriptor* Phase_descriptor_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_caffe_2eproto() { - protobuf_AddDesc_caffe_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - BlobShape_descriptor_, - BlobShape::default_instance_, - BlobShape_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobShape, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobShape, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(BlobShape)); - BlobProto_descriptor_ = file->message_type(1); - static const int BlobProto_offsets_[7] = { - 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, 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - BlobProto_descriptor_, - BlobProto::default_instance_, - BlobProto_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProto, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProto, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(BlobProto)); - BlobProtoVector_descriptor_ = file->message_type(2); - static const int BlobProtoVector_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProtoVector, blobs_), - }; - BlobProtoVector_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - BlobProtoVector_descriptor_, - BlobProtoVector::default_instance_, - BlobProtoVector_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProtoVector, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProtoVector, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(BlobProtoVector)); - Datum_descriptor_ = file->message_type(3); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - Datum_descriptor_, - Datum::default_instance_, - Datum_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Datum, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Datum, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(Datum)); - FillerParameter_descriptor_ = file->message_type(4); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - FillerParameter_descriptor_, - FillerParameter::default_instance_, - FillerParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FillerParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FillerParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(FillerParameter)); - FillerParameter_VarianceNorm_descriptor_ = FillerParameter_descriptor_->enum_type(0); - NetParameter_descriptor_ = file->message_type(5); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - NetParameter_descriptor_, - NetParameter::default_instance_, - NetParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(NetParameter)); - SolverParameter_descriptor_ = file->message_type(6); - static const int SolverParameter_offsets_[36] = { - 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, 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, solver_type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, delta_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, debug_info_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, snapshot_after_train_), - }; - SolverParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - SolverParameter_descriptor_, - SolverParameter::default_instance_, - SolverParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(SolverParameter)); - SolverParameter_SolverMode_descriptor_ = SolverParameter_descriptor_->enum_type(0); - SolverParameter_SolverType_descriptor_ = SolverParameter_descriptor_->enum_type(1); - SolverState_descriptor_ = file->message_type(7); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - SolverState_descriptor_, - SolverState::default_instance_, - SolverState_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverState, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverState, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(SolverState)); - NetState_descriptor_ = file->message_type(8); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - NetState_descriptor_, - NetState::default_instance_, - NetState_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetState, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetState, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(NetState)); - NetStateRule_descriptor_ = file->message_type(9); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - NetStateRule_descriptor_, - NetStateRule::default_instance_, - NetStateRule_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetStateRule, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetStateRule, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(NetStateRule)); - ParamSpec_descriptor_ = file->message_type(10); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ParamSpec_descriptor_, - ParamSpec::default_instance_, - ParamSpec_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParamSpec, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParamSpec, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ParamSpec)); - ParamSpec_DimCheckMode_descriptor_ = ParamSpec_descriptor_->enum_type(0); - LayerParameter_descriptor_ = file->message_type(11); - static const int LayerParameter_offsets_[48] = { - 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, 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, data_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, 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, 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, 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, python_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, 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, window_data_param_), - }; - LayerParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - LayerParameter_descriptor_, - LayerParameter::default_instance_, - LayerParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(LayerParameter)); - TransformationParameter_descriptor_ = file->message_type(12); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - TransformationParameter_descriptor_, - TransformationParameter::default_instance_, - TransformationParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransformationParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransformationParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(TransformationParameter)); - LossParameter_descriptor_ = file->message_type(13); - static const int LossParameter_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LossParameter, ignore_label_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LossParameter, normalize_), - }; - LossParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - LossParameter_descriptor_, - LossParameter::default_instance_, - LossParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LossParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LossParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(LossParameter)); - AccuracyParameter_descriptor_ = file->message_type(14); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AccuracyParameter_descriptor_, - AccuracyParameter::default_instance_, - AccuracyParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccuracyParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccuracyParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AccuracyParameter)); - ArgMaxParameter_descriptor_ = file->message_type(15); - static const int ArgMaxParameter_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArgMaxParameter, out_max_val_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArgMaxParameter, top_k_), - }; - ArgMaxParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ArgMaxParameter_descriptor_, - ArgMaxParameter::default_instance_, - ArgMaxParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArgMaxParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArgMaxParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ArgMaxParameter)); - ConcatParameter_descriptor_ = file->message_type(16); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ConcatParameter_descriptor_, - ConcatParameter::default_instance_, - ConcatParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConcatParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConcatParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ConcatParameter)); - ContrastiveLossParameter_descriptor_ = file->message_type(17); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ContrastiveLossParameter_descriptor_, - ContrastiveLossParameter::default_instance_, - ContrastiveLossParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ContrastiveLossParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ContrastiveLossParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ContrastiveLossParameter)); - ConvolutionParameter_descriptor_ = file->message_type(18); - static const int ConvolutionParameter_offsets_[15] = { - 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, pad_h_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, pad_w_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, kernel_size_), - 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, group_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, stride_), - 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, weight_filler_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, bias_filler_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, engine_), - }; - ConvolutionParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ConvolutionParameter_descriptor_, - ConvolutionParameter::default_instance_, - ConvolutionParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ConvolutionParameter)); - ConvolutionParameter_Engine_descriptor_ = ConvolutionParameter_descriptor_->enum_type(0); - DataParameter_descriptor_ = file->message_type(19); - static const int DataParameter_offsets_[9] = { - 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_), - }; - DataParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - DataParameter_descriptor_, - DataParameter::default_instance_, - DataParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(DataParameter)); - DataParameter_DB_descriptor_ = DataParameter_descriptor_->enum_type(0); - DropoutParameter_descriptor_ = file->message_type(20); - static const int DropoutParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DropoutParameter, dropout_ratio_), - }; - DropoutParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - DropoutParameter_descriptor_, - DropoutParameter::default_instance_, - DropoutParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DropoutParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DropoutParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(DropoutParameter)); - DummyDataParameter_descriptor_ = file->message_type(21); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - DummyDataParameter_descriptor_, - DummyDataParameter::default_instance_, - DummyDataParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DummyDataParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DummyDataParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(DummyDataParameter)); - EltwiseParameter_descriptor_ = file->message_type(22); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - EltwiseParameter_descriptor_, - EltwiseParameter::default_instance_, - EltwiseParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EltwiseParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EltwiseParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(EltwiseParameter)); - EltwiseParameter_EltwiseOp_descriptor_ = EltwiseParameter_descriptor_->enum_type(0); - ExpParameter_descriptor_ = file->message_type(23); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ExpParameter_descriptor_, - ExpParameter::default_instance_, - ExpParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExpParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExpParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ExpParameter)); - FlattenParameter_descriptor_ = file->message_type(24); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - FlattenParameter_descriptor_, - FlattenParameter::default_instance_, - FlattenParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlattenParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlattenParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(FlattenParameter)); - HDF5DataParameter_descriptor_ = file->message_type(25); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - HDF5DataParameter_descriptor_, - HDF5DataParameter::default_instance_, - HDF5DataParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HDF5DataParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HDF5DataParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(HDF5DataParameter)); - HDF5OutputParameter_descriptor_ = file->message_type(26); - static const int HDF5OutputParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HDF5OutputParameter, file_name_), - }; - HDF5OutputParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - HDF5OutputParameter_descriptor_, - HDF5OutputParameter::default_instance_, - HDF5OutputParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HDF5OutputParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HDF5OutputParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(HDF5OutputParameter)); - HingeLossParameter_descriptor_ = file->message_type(27); - static const int HingeLossParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HingeLossParameter, norm_), - }; - HingeLossParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - HingeLossParameter_descriptor_, - HingeLossParameter::default_instance_, - HingeLossParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HingeLossParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HingeLossParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(HingeLossParameter)); - HingeLossParameter_Norm_descriptor_ = HingeLossParameter_descriptor_->enum_type(0); - ImageDataParameter_descriptor_ = file->message_type(28); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ImageDataParameter_descriptor_, - ImageDataParameter::default_instance_, - ImageDataParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ImageDataParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ImageDataParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ImageDataParameter)); - InfogainLossParameter_descriptor_ = file->message_type(29); - static const int InfogainLossParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InfogainLossParameter, source_), - }; - InfogainLossParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - InfogainLossParameter_descriptor_, - InfogainLossParameter::default_instance_, - InfogainLossParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InfogainLossParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InfogainLossParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(InfogainLossParameter)); - InnerProductParameter_descriptor_ = file->message_type(30); - static const int InnerProductParameter_offsets_[5] = { - 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_), - }; - InnerProductParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - InnerProductParameter_descriptor_, - InnerProductParameter::default_instance_, - InnerProductParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InnerProductParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InnerProductParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(InnerProductParameter)); - LogParameter_descriptor_ = file->message_type(31); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - LogParameter_descriptor_, - LogParameter::default_instance_, - LogParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LogParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LogParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(LogParameter)); - LRNParameter_descriptor_ = file->message_type(32); - static const int LRNParameter_offsets_[5] = { - 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_), - }; - LRNParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - LRNParameter_descriptor_, - LRNParameter::default_instance_, - LRNParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LRNParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LRNParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(LRNParameter)); - LRNParameter_NormRegion_descriptor_ = LRNParameter_descriptor_->enum_type(0); - MemoryDataParameter_descriptor_ = file->message_type(33); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - MemoryDataParameter_descriptor_, - MemoryDataParameter::default_instance_, - MemoryDataParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemoryDataParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemoryDataParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(MemoryDataParameter)); - MVNParameter_descriptor_ = file->message_type(34); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - MVNParameter_descriptor_, - MVNParameter::default_instance_, - MVNParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MVNParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MVNParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(MVNParameter)); - PoolingParameter_descriptor_ = file->message_type(35); - static const int PoolingParameter_offsets_[12] = { - 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_), - }; - PoolingParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - PoolingParameter_descriptor_, - PoolingParameter::default_instance_, - PoolingParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(PoolingParameter)); - PoolingParameter_PoolMethod_descriptor_ = PoolingParameter_descriptor_->enum_type(0); - PoolingParameter_Engine_descriptor_ = PoolingParameter_descriptor_->enum_type(1); - PowerParameter_descriptor_ = file->message_type(36); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - PowerParameter_descriptor_, - PowerParameter::default_instance_, - PowerParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PowerParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PowerParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(PowerParameter)); - PythonParameter_descriptor_ = file->message_type(37); - static const int PythonParameter_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PythonParameter, module_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PythonParameter, layer_), - }; - PythonParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - PythonParameter_descriptor_, - PythonParameter::default_instance_, - PythonParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PythonParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PythonParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(PythonParameter)); - ReductionParameter_descriptor_ = file->message_type(38); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ReductionParameter_descriptor_, - ReductionParameter::default_instance_, - ReductionParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReductionParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReductionParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ReductionParameter)); - ReductionParameter_ReductionOp_descriptor_ = ReductionParameter_descriptor_->enum_type(0); - ReLUParameter_descriptor_ = file->message_type(39); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ReLUParameter_descriptor_, - ReLUParameter::default_instance_, - ReLUParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReLUParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReLUParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ReLUParameter)); - ReLUParameter_Engine_descriptor_ = ReLUParameter_descriptor_->enum_type(0); - ReshapeParameter_descriptor_ = file->message_type(40); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ReshapeParameter_descriptor_, - ReshapeParameter::default_instance_, - ReshapeParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReshapeParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReshapeParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ReshapeParameter)); - SigmoidParameter_descriptor_ = file->message_type(41); - static const int SigmoidParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SigmoidParameter, engine_), - }; - SigmoidParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - SigmoidParameter_descriptor_, - SigmoidParameter::default_instance_, - SigmoidParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SigmoidParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SigmoidParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(SigmoidParameter)); - SigmoidParameter_Engine_descriptor_ = SigmoidParameter_descriptor_->enum_type(0); - SliceParameter_descriptor_ = file->message_type(42); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - SliceParameter_descriptor_, - SliceParameter::default_instance_, - SliceParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SliceParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SliceParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(SliceParameter)); - SoftmaxParameter_descriptor_ = file->message_type(43); - static const int SoftmaxParameter_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SoftmaxParameter, engine_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SoftmaxParameter, axis_), - }; - SoftmaxParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - SoftmaxParameter_descriptor_, - SoftmaxParameter::default_instance_, - SoftmaxParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SoftmaxParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SoftmaxParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(SoftmaxParameter)); - SoftmaxParameter_Engine_descriptor_ = SoftmaxParameter_descriptor_->enum_type(0); - TanHParameter_descriptor_ = file->message_type(44); - static const int TanHParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TanHParameter, engine_), - }; - TanHParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - TanHParameter_descriptor_, - TanHParameter::default_instance_, - TanHParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TanHParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TanHParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(TanHParameter)); - TanHParameter_Engine_descriptor_ = TanHParameter_descriptor_->enum_type(0); - ThresholdParameter_descriptor_ = file->message_type(45); - static const int ThresholdParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ThresholdParameter, threshold_), - }; - ThresholdParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ThresholdParameter_descriptor_, - ThresholdParameter::default_instance_, - ThresholdParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ThresholdParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ThresholdParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ThresholdParameter)); - WindowDataParameter_descriptor_ = file->message_type(46); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - WindowDataParameter_descriptor_, - WindowDataParameter::default_instance_, - WindowDataParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(WindowDataParameter)); - SPPParameter_descriptor_ = file->message_type(47); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - SPPParameter_descriptor_, - SPPParameter::default_instance_, - SPPParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SPPParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SPPParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(SPPParameter)); - SPPParameter_PoolMethod_descriptor_ = SPPParameter_descriptor_->enum_type(0); - SPPParameter_Engine_descriptor_ = SPPParameter_descriptor_->enum_type(1); - V1LayerParameter_descriptor_ = file->message_type(48); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - V1LayerParameter_descriptor_, - V1LayerParameter::default_instance_, - V1LayerParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(V1LayerParameter)); - V1LayerParameter_LayerType_descriptor_ = V1LayerParameter_descriptor_->enum_type(0); - V1LayerParameter_DimCheckMode_descriptor_ = V1LayerParameter_descriptor_->enum_type(1); - V0LayerParameter_descriptor_ = file->message_type(49); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - V0LayerParameter_descriptor_, - V0LayerParameter::default_instance_, - V0LayerParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(V0LayerParameter)); - V0LayerParameter_PoolMethod_descriptor_ = V0LayerParameter_descriptor_->enum_type(0); - PReLUParameter_descriptor_ = file->message_type(50); - 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_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - PReLUParameter_descriptor_, - PReLUParameter::default_instance_, - PReLUParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PReLUParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PReLUParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(PReLUParameter)); - Phase_descriptor_ = file->enum_type(0); -} - -namespace { - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); -inline void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_caffe_2eproto); -} - -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - BlobShape_descriptor_, &BlobShape::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - BlobProto_descriptor_, &BlobProto::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - BlobProtoVector_descriptor_, &BlobProtoVector::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Datum_descriptor_, &Datum::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FillerParameter_descriptor_, &FillerParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - NetParameter_descriptor_, &NetParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SolverParameter_descriptor_, &SolverParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SolverState_descriptor_, &SolverState::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - NetState_descriptor_, &NetState::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - NetStateRule_descriptor_, &NetStateRule::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ParamSpec_descriptor_, &ParamSpec::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - LayerParameter_descriptor_, &LayerParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - TransformationParameter_descriptor_, &TransformationParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - LossParameter_descriptor_, &LossParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AccuracyParameter_descriptor_, &AccuracyParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ArgMaxParameter_descriptor_, &ArgMaxParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ConcatParameter_descriptor_, &ConcatParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ContrastiveLossParameter_descriptor_, &ContrastiveLossParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ConvolutionParameter_descriptor_, &ConvolutionParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - DataParameter_descriptor_, &DataParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - DropoutParameter_descriptor_, &DropoutParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - DummyDataParameter_descriptor_, &DummyDataParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - EltwiseParameter_descriptor_, &EltwiseParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ExpParameter_descriptor_, &ExpParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FlattenParameter_descriptor_, &FlattenParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - HDF5DataParameter_descriptor_, &HDF5DataParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - HDF5OutputParameter_descriptor_, &HDF5OutputParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - HingeLossParameter_descriptor_, &HingeLossParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ImageDataParameter_descriptor_, &ImageDataParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - InfogainLossParameter_descriptor_, &InfogainLossParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - InnerProductParameter_descriptor_, &InnerProductParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - LogParameter_descriptor_, &LogParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - LRNParameter_descriptor_, &LRNParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - MemoryDataParameter_descriptor_, &MemoryDataParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - MVNParameter_descriptor_, &MVNParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PoolingParameter_descriptor_, &PoolingParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PowerParameter_descriptor_, &PowerParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PythonParameter_descriptor_, &PythonParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ReductionParameter_descriptor_, &ReductionParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ReLUParameter_descriptor_, &ReLUParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ReshapeParameter_descriptor_, &ReshapeParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SigmoidParameter_descriptor_, &SigmoidParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SliceParameter_descriptor_, &SliceParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SoftmaxParameter_descriptor_, &SoftmaxParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - TanHParameter_descriptor_, &TanHParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ThresholdParameter_descriptor_, &ThresholdParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - WindowDataParameter_descriptor_, &WindowDataParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SPPParameter_descriptor_, &SPPParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - V1LayerParameter_descriptor_, &V1LayerParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - V0LayerParameter_descriptor_, &V0LayerParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PReLUParameter_descriptor_, &PReLUParameter::default_instance()); -} - -} // namespace - -void protobuf_ShutdownFile_caffe_2eproto() { - delete BlobShape::default_instance_; - delete BlobShape_reflection_; - delete BlobProto::default_instance_; - delete BlobProto_reflection_; - delete BlobProtoVector::default_instance_; - delete BlobProtoVector_reflection_; - delete Datum::default_instance_; - delete Datum_reflection_; - delete FillerParameter::default_instance_; - delete FillerParameter_reflection_; - delete FillerParameter::_default_type_; - delete NetParameter::default_instance_; - delete NetParameter_reflection_; - delete SolverParameter::default_instance_; - delete SolverParameter_reflection_; - delete SolverParameter::_default_regularization_type_; - delete SolverState::default_instance_; - delete SolverState_reflection_; - delete NetState::default_instance_; - delete NetState_reflection_; - delete NetStateRule::default_instance_; - delete NetStateRule_reflection_; - delete ParamSpec::default_instance_; - delete ParamSpec_reflection_; - delete LayerParameter::default_instance_; - delete LayerParameter_reflection_; - delete TransformationParameter::default_instance_; - delete TransformationParameter_reflection_; - delete LossParameter::default_instance_; - delete LossParameter_reflection_; - delete AccuracyParameter::default_instance_; - delete AccuracyParameter_reflection_; - delete ArgMaxParameter::default_instance_; - delete ArgMaxParameter_reflection_; - delete ConcatParameter::default_instance_; - delete ConcatParameter_reflection_; - delete ContrastiveLossParameter::default_instance_; - delete ContrastiveLossParameter_reflection_; - delete ConvolutionParameter::default_instance_; - delete ConvolutionParameter_reflection_; - delete DataParameter::default_instance_; - delete DataParameter_reflection_; - delete DropoutParameter::default_instance_; - delete DropoutParameter_reflection_; - delete DummyDataParameter::default_instance_; - delete DummyDataParameter_reflection_; - delete EltwiseParameter::default_instance_; - delete EltwiseParameter_reflection_; - delete ExpParameter::default_instance_; - delete ExpParameter_reflection_; - delete FlattenParameter::default_instance_; - delete FlattenParameter_reflection_; - delete HDF5DataParameter::default_instance_; - delete HDF5DataParameter_reflection_; - delete HDF5OutputParameter::default_instance_; - delete HDF5OutputParameter_reflection_; - delete HingeLossParameter::default_instance_; - delete HingeLossParameter_reflection_; - delete ImageDataParameter::default_instance_; - delete ImageDataParameter_reflection_; - delete InfogainLossParameter::default_instance_; - delete InfogainLossParameter_reflection_; - delete InnerProductParameter::default_instance_; - delete InnerProductParameter_reflection_; - delete LogParameter::default_instance_; - delete LogParameter_reflection_; - delete LRNParameter::default_instance_; - delete LRNParameter_reflection_; - delete MemoryDataParameter::default_instance_; - delete MemoryDataParameter_reflection_; - delete MVNParameter::default_instance_; - delete MVNParameter_reflection_; - delete PoolingParameter::default_instance_; - delete PoolingParameter_reflection_; - delete PowerParameter::default_instance_; - delete PowerParameter_reflection_; - delete PythonParameter::default_instance_; - delete PythonParameter_reflection_; - delete ReductionParameter::default_instance_; - delete ReductionParameter_reflection_; - delete ReLUParameter::default_instance_; - delete ReLUParameter_reflection_; - delete ReshapeParameter::default_instance_; - delete ReshapeParameter_reflection_; - delete SigmoidParameter::default_instance_; - delete SigmoidParameter_reflection_; - delete SliceParameter::default_instance_; - delete SliceParameter_reflection_; - delete SoftmaxParameter::default_instance_; - delete SoftmaxParameter_reflection_; - delete TanHParameter::default_instance_; - delete TanHParameter_reflection_; - delete ThresholdParameter::default_instance_; - delete ThresholdParameter_reflection_; - delete WindowDataParameter::default_instance_; - delete WindowDataParameter_reflection_; - delete WindowDataParameter::_default_crop_mode_; - delete SPPParameter::default_instance_; - delete SPPParameter_reflection_; - delete V1LayerParameter::default_instance_; - delete V1LayerParameter_reflection_; - delete V0LayerParameter::default_instance_; - delete V0LayerParameter_reflection_; - delete V0LayerParameter::_default_det_crop_mode_; - delete PReLUParameter::default_instance_; - delete PReLUParameter_reflection_; -} - -void protobuf_AddDesc_caffe_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\013caffe.proto\022\005caffe\"\034\n\tBlobShape\022\017\n\003dim" - "\030\001 \003(\003B\002\020\001\"\232\001\n\tBlobProto\022\037\n\005shape\030\007 \001(\0132" - "\020.caffe.BlobShape\022\020\n\004data\030\005 \003(\002B\002\020\001\022\020\n\004d" - "iff\030\006 \003(\002B\002\020\001\022\016\n\003num\030\001 \001(\005:\0010\022\023\n\010channel" - "s\030\002 \001(\005:\0010\022\021\n\006height\030\003 \001(\005:\0010\022\020\n\005width\030\004" - " \001(\005:\0010\"2\n\017BlobProtoVector\022\037\n\005blobs\030\001 \003(" - "\0132\020.caffe.BlobProto\"\201\001\n\005Datum\022\020\n\010channel" - "s\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_dat" - "a\030\006 \003(\002\022\026\n\007encoded\030\007 \001(\010:\005false\"\212\002\n\017Fill" - "erParameter\022\026\n\004type\030\001 \001(\t:\010constant\022\020\n\005v" - "alue\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\022B\n\rvariance_norm\030\010 \001(" - "\0162#.caffe.FillerParameter.VarianceNorm:\006" - "FAN_IN\"4\n\014VarianceNorm\022\n\n\006FAN_IN\020\000\022\013\n\007FA" - "N_OUT\020\001\022\013\n\007AVERAGE\020\002\"\216\002\n\014NetParameter\022\014\n" - "\004name\030\001 \001(\t\022\r\n\005input\030\003 \003(\t\022%\n\013input_shap" - "e\030\010 \003(\0132\020.caffe.BlobShape\022\021\n\tinput_dim\030\004" - " \003(\005\022\035\n\016force_backward\030\005 \001(\010:\005false\022\036\n\005s" - "tate\030\006 \001(\0132\017.caffe.NetState\022\031\n\ndebug_inf" - "o\030\007 \001(\010:\005false\022$\n\005layer\030d \003(\0132\025.caffe.La" - "yerParameter\022\'\n\006layers\030\002 \003(\0132\027.caffe.V1L" - "ayerParameter\"\275\010\n\017SolverParameter\022\013\n\003net" - "\030\030 \001(\t\022&\n\tnet_param\030\031 \001(\0132\023.caffe.NetPar" - "ameter\022\021\n\ttrain_net\030\001 \001(\t\022\020\n\010test_net\030\002 " - "\003(\t\022,\n\017train_net_param\030\025 \001(\0132\023.caffe.Net" - "Parameter\022+\n\016test_net_param\030\026 \003(\0132\023.caff" - "e.NetParameter\022$\n\013train_state\030\032 \001(\0132\017.ca" - "ffe.NetState\022#\n\ntest_state\030\033 \003(\0132\017.caffe" - ".NetState\022\021\n\ttest_iter\030\003 \003(\005\022\030\n\rtest_int" - "erval\030\004 \001(\005:\0010\022 \n\021test_compute_loss\030\023 \001(" - "\010:\005false\022!\n\023test_initialization\030 \001(\010:\004t" - "rue\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\010momen" - "tum\030\013 \001(\002\022\024\n\014weight_decay\030\014 \001(\002\022\037\n\023regul" - "arization_type\030\035 \001(\t:\002L2\022\020\n\010stepsize\030\r \001" - "(\005\022\021\n\tstepvalue\030\" \003(\005\022\032\n\016clip_gradients\030" - "# \001(\002:\002-1\022\023\n\010snapshot\030\016 \001(\005:\0010\022\027\n\017snapsh" - "ot_prefix\030\017 \001(\t\022\034\n\rsnapshot_diff\030\020 \001(\010:\005" - "false\022;\n\013solver_mode\030\021 \001(\0162!.caffe.Solve" - "rParameter.SolverMode:\003GPU\022\024\n\tdevice_id\030" - "\022 \001(\005:\0010\022\027\n\013random_seed\030\024 \001(\003:\002-1\022;\n\013sol" - "ver_type\030\036 \001(\0162!.caffe.SolverParameter.S" - "olverType:\003SGD\022\024\n\005delta\030\037 \001(\002:\0051e-08\022\031\n\n" - "debug_info\030\027 \001(\010:\005false\022\"\n\024snapshot_afte" - "r_train\030\034 \001(\010:\004true\"\036\n\nSolverMode\022\007\n\003CPU" - "\020\000\022\007\n\003GPU\020\001\"0\n\nSolverType\022\007\n\003SGD\020\000\022\014\n\010NE" - "STEROV\020\001\022\013\n\007ADAGRAD\020\002\"l\n\013SolverState\022\014\n\004" - "iter\030\001 \001(\005\022\023\n\013learned_net\030\002 \001(\t\022!\n\007histo" - "ry\030\003 \003(\0132\020.caffe.BlobProto\022\027\n\014current_st" - "ep\030\004 \001(\005:\0010\"N\n\010NetState\022!\n\005phase\030\001 \001(\0162\014" - ".caffe.Phase:\004TEST\022\020\n\005level\030\002 \001(\005:\0010\022\r\n\005" - "stage\030\003 \003(\t\"s\n\014NetStateRule\022\033\n\005phase\030\001 \001" - "(\0162\014.caffe.Phase\022\021\n\tmin_level\030\002 \001(\005\022\021\n\tm" - "ax_level\030\003 \001(\005\022\r\n\005stage\030\004 \003(\t\022\021\n\tnot_sta" - "ge\030\005 \003(\t\"\243\001\n\tParamSpec\022\014\n\004name\030\001 \001(\t\0221\n\n" - "share_mode\030\002 \001(\0162\035.caffe.ParamSpec.DimCh" - "eckMode\022\022\n\007lr_mult\030\003 \001(\002:\0011\022\025\n\ndecay_mul" - "t\030\004 \001(\002:\0011\"*\n\014DimCheckMode\022\n\n\006STRICT\020\000\022\016" - "\n\nPERMISSIVE\020\001\"\261\020\n\016LayerParameter\022\014\n\004nam" - "e\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\033\n\005phase\030\n \001(\0162\014.caffe.Phase\022" - "\023\n\013loss_weight\030\005 \003(\002\022\037\n\005param\030\006 \003(\0132\020.ca" - "ffe.ParamSpec\022\037\n\005blobs\030\007 \003(\0132\020.caffe.Blo" - "bProto\022\026\n\016propagate_down\030\013 \003(\010\022$\n\007includ" - "e\030\010 \003(\0132\023.caffe.NetStateRule\022$\n\007exclude\030" - "\t \003(\0132\023.caffe.NetStateRule\0227\n\017transform_" - "param\030d \001(\0132\036.caffe.TransformationParame" - "ter\022(\n\nloss_param\030e \001(\0132\024.caffe.LossPara" - "meter\0220\n\016accuracy_param\030f \001(\0132\030.caffe.Ac" - "curacyParameter\022,\n\014argmax_param\030g \001(\0132\026." - "caffe.ArgMaxParameter\022,\n\014concat_param\030h " - "\001(\0132\026.caffe.ConcatParameter\022\?\n\026contrasti" - "ve_loss_param\030i \001(\0132\037.caffe.ContrastiveL" - "ossParameter\0226\n\021convolution_param\030j \001(\0132" - "\033.caffe.ConvolutionParameter\022(\n\ndata_par" - "am\030k \001(\0132\024.caffe.DataParameter\022.\n\rdropou" - "t_param\030l \001(\0132\027.caffe.DropoutParameter\0223" - "\n\020dummy_data_param\030m \001(\0132\031.caffe.DummyDa" - "taParameter\022.\n\reltwise_param\030n \001(\0132\027.caf" - "fe.EltwiseParameter\022&\n\texp_param\030o \001(\0132\023" - ".caffe.ExpParameter\022/\n\rflatten_param\030\207\001 " - "\001(\0132\027.caffe.FlattenParameter\0221\n\017hdf5_dat" - "a_param\030p \001(\0132\030.caffe.HDF5DataParameter\022" - "5\n\021hdf5_output_param\030q \001(\0132\032.caffe.HDF5O" - "utputParameter\0223\n\020hinge_loss_param\030r \001(\013" - "2\031.caffe.HingeLossParameter\0223\n\020image_dat" - "a_param\030s \001(\0132\031.caffe.ImageDataParameter" - "\0229\n\023infogain_loss_param\030t \001(\0132\034.caffe.In" - "fogainLossParameter\0229\n\023inner_product_par" - "am\030u \001(\0132\034.caffe.InnerProductParameter\022\'" - "\n\tlog_param\030\206\001 \001(\0132\023.caffe.LogParameter\022" - "&\n\tlrn_param\030v \001(\0132\023.caffe.LRNParameter\022" - "5\n\021memory_data_param\030w \001(\0132\032.caffe.Memor" - "yDataParameter\022&\n\tmvn_param\030x \001(\0132\023.caff" - "e.MVNParameter\022.\n\rpooling_param\030y \001(\0132\027." - "caffe.PoolingParameter\022*\n\013power_param\030z " - "\001(\0132\025.caffe.PowerParameter\022+\n\013prelu_para" - "m\030\203\001 \001(\0132\025.caffe.PReLUParameter\022-\n\014pytho" - "n_param\030\202\001 \001(\0132\026.caffe.PythonParameter\0223" - "\n\017reduction_param\030\210\001 \001(\0132\031.caffe.Reducti" - "onParameter\022(\n\nrelu_param\030{ \001(\0132\024.caffe." - "ReLUParameter\022/\n\rreshape_param\030\205\001 \001(\0132\027." - "caffe.ReshapeParameter\022.\n\rsigmoid_param\030" - "| \001(\0132\027.caffe.SigmoidParameter\022.\n\rsoftma" - "x_param\030} \001(\0132\027.caffe.SoftmaxParameter\022\'" - "\n\tspp_param\030\204\001 \001(\0132\023.caffe.SPPParameter\022" - "*\n\013slice_param\030~ \001(\0132\025.caffe.SliceParame" - "ter\022(\n\ntanh_param\030\177 \001(\0132\024.caffe.TanHPara" - "meter\0223\n\017threshold_param\030\200\001 \001(\0132\031.caffe." - "ThresholdParameter\0226\n\021window_data_param\030" - "\201\001 \001(\0132\032.caffe.WindowDataParameter\"\266\001\n\027T" - "ransformationParameter\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\tmean_file\030\004 \001(\t\022\022\n\nmean_value\030\005" - " \003(\002\022\032\n\013force_color\030\006 \001(\010:\005false\022\031\n\nforc" - "e_gray\030\007 \001(\010:\005false\">\n\rLossParameter\022\024\n\014" - "ignore_label\030\001 \001(\005\022\027\n\tnormalize\030\002 \001(\010:\004t" - "rue\"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_label\030\003 \001(" - "\005\"\?\n\017ArgMaxParameter\022\032\n\013out_max_val\030\001 \001(" - "\010:\005false\022\020\n\005top_k\030\002 \001(\r:\0011\"9\n\017ConcatPara" - "meter\022\017\n\004axis\030\002 \001(\005:\0011\022\025\n\nconcat_dim\030\001 \001" - "(\r:\0011\"L\n\030ContrastiveLossParameter\022\021\n\006mar" - "gin\030\001 \001(\002:\0011\022\035\n\016legacy_version\030\002 \001(\010:\005fa" - "lse\"\277\003\n\024ConvolutionParameter\022\022\n\nnum_outp" - "ut\030\001 \001(\r\022\027\n\tbias_term\030\002 \001(\010:\004true\022\016\n\003pad" - "\030\003 \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\004 \001(\r\022\020\n\010kernel_h\030\013" - " \001(\r\022\020\n\010kernel_w\030\014 \001(\r\022\020\n\005group\030\005 \001(\r:\0011" - "\022\021\n\006stride\030\006 \001(\r:\0011\022\020\n\010stride_h\030\r \001(\r\022\020\n" - "\010stride_w\030\016 \001(\r\022-\n\rweight_filler\030\007 \001(\0132\026" - ".caffe.FillerParameter\022+\n\013bias_filler\030\010 " - "\001(\0132\026.caffe.FillerParameter\022;\n\006engine\030\017 " - "\001(\0162\".caffe.ConvolutionParameter.Engine:" - "\007DEFAULT\"+\n\006Engine\022\013\n\007DEFAULT\020\000\022\t\n\005CAFFE" - "\020\001\022\t\n\005CUDNN\020\002\"\217\002\n\rDataParameter\022\016\n\006sourc" - "e\030\001 \001(\t\022\022\n\nbatch_size\030\004 \001(\r\022\024\n\trand_skip" - "\030\007 \001(\r:\0010\0221\n\007backend\030\010 \001(\0162\027.caffe.DataP" - "arameter.DB:\007LEVELDB\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\"\n\023force_encoded_" - "color\030\t \001(\010:\005false\"\033\n\002DB\022\013\n\007LEVELDB\020\000\022\010\n" - "\004LMDB\020\001\".\n\020DropoutParameter\022\032\n\rdropout_r" - "atio\030\001 \001(\002:\0030.5\"\240\001\n\022DummyDataParameter\022+" - "\n\013data_filler\030\001 \003(\0132\026.caffe.FillerParame" - "ter\022\037\n\005shape\030\006 \003(\0132\020.caffe.BlobShape\022\013\n\003" - "num\030\002 \003(\r\022\020\n\010channels\030\003 \003(\r\022\016\n\006height\030\004 " - "\003(\r\022\r\n\005width\030\005 \003(\r\"\245\001\n\020EltwiseParameter\022" - "9\n\toperation\030\001 \001(\0162!.caffe.EltwiseParame" - "ter.EltwiseOp:\003SUM\022\r\n\005coeff\030\002 \003(\002\022\036\n\020sta" - "ble_prod_grad\030\003 \001(\010:\004true\"\'\n\tEltwiseOp\022\010" - "\n\004PROD\020\000\022\007\n\003SUM\020\001\022\007\n\003MAX\020\002\"D\n\014ExpParamet" - "er\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\020FlattenParameter\022\017\n\004" - "axis\030\001 \001(\005:\0011\022\024\n\010end_axis\030\002 \001(\005:\002-1\"O\n\021H" - "DF5DataParameter\022\016\n\006source\030\001 \001(\t\022\022\n\nbatc" - "h_size\030\002 \001(\r\022\026\n\007shuffle\030\003 \001(\010:\005false\"(\n\023" - "HDF5OutputParameter\022\021\n\tfile_name\030\001 \001(\t\"^" - "\n\022HingeLossParameter\0220\n\004norm\030\001 \001(\0162\036.caf" - "fe.HingeLossParameter.Norm:\002L1\"\026\n\004Norm\022\006" - "\n\002L1\020\001\022\006\n\002L2\020\002\"\224\002\n\022ImageDataParameter\022\016\n" - "\006source\030\001 \001(\t\022\022\n\nbatch_size\030\004 \001(\r\022\024\n\tran" - "d_skip\030\007 \001(\r:\0010\022\026\n\007shuffle\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_f" - "older\030\014 \001(\t:\000\"\'\n\025InfogainLossParameter\022\016" - "\n\006source\030\001 \001(\t\"\261\001\n\025InnerProductParameter" - "\022\022\n\nnum_output\030\001 \001(\r\022\027\n\tbias_term\030\002 \001(\010:" - "\004true\022-\n\rweight_filler\030\003 \001(\0132\026.caffe.Fil" - "lerParameter\022+\n\013bias_filler\030\004 \001(\0132\026.caff" - "e.FillerParameter\022\017\n\004axis\030\005 \001(\005:\0011\"D\n\014Lo" - "gParameter\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\"\326\001\n\014LRNParamete" - "r\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\022D\n\013norm_region\030\004 " - "\001(\0162\036.caffe.LRNParameter.NormRegion:\017ACR" - "OSS_CHANNELS\022\014\n\001k\030\005 \001(\002:\0011\"5\n\nNormRegion" - "\022\023\n\017ACROSS_CHANNELS\020\000\022\022\n\016WITHIN_CHANNEL\020" - "\001\"Z\n\023MemoryDataParameter\022\022\n\nbatch_size\030\001" - " \001(\r\022\020\n\010channels\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\022normali" - "ze_variance\030\001 \001(\010:\004true\022\036\n\017across_channe" - "ls\030\002 \001(\010:\005false\022\022\n\003eps\030\003 \001(\002:\0051e-09\"\242\003\n\020" - "PoolingParameter\0225\n\004pool\030\001 \001(\0162\".caffe.P" - "oolingParameter.PoolMethod:\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\010stride_w\030\010 \001(\r\0227\n\006e" - "ngine\030\013 \001(\0162\036.caffe.PoolingParameter.Eng" - "ine:\007DEFAULT\022\035\n\016global_pooling\030\014 \001(\010:\005fa" - "lse\".\n\nPoolMethod\022\007\n\003MAX\020\000\022\007\n\003AVE\020\001\022\016\n\nS" - "TOCHASTIC\020\002\"+\n\006Engine\022\013\n\007DEFAULT\020\000\022\t\n\005CA" - "FFE\020\001\022\t\n\005CUDNN\020\002\"F\n\016PowerParameter\022\020\n\005po" - "wer\030\001 \001(\002:\0011\022\020\n\005scale\030\002 \001(\002:\0011\022\020\n\005shift\030" - "\003 \001(\002:\0010\"0\n\017PythonParameter\022\016\n\006module\030\001 " - "\001(\t\022\r\n\005layer\030\002 \001(\t\"\255\001\n\022ReductionParamete" - "r\022=\n\toperation\030\001 \001(\0162%.caffe.ReductionPa" - "rameter.ReductionOp:\003SUM\022\017\n\004axis\030\002 \001(\005:\001" - "0\022\020\n\005coeff\030\003 \001(\002:\0011\"5\n\013ReductionOp\022\007\n\003SU" - "M\020\001\022\010\n\004ASUM\020\002\022\t\n\005SUMSQ\020\003\022\010\n\004MEAN\020\004\"\215\001\n\rR" - "eLUParameter\022\031\n\016negative_slope\030\001 \001(\002:\0010\022" - "4\n\006engine\030\002 \001(\0162\033.caffe.ReLUParameter.En" - "gine:\007DEFAULT\"+\n\006Engine\022\013\n\007DEFAULT\020\000\022\t\n\005" - "CAFFE\020\001\022\t\n\005CUDNN\020\002\"Z\n\020ReshapeParameter\022\037" - "\n\005shape\030\001 \001(\0132\020.caffe.BlobShape\022\017\n\004axis\030" - "\002 \001(\005:\0010\022\024\n\010num_axes\030\003 \001(\005:\002-1\"x\n\020Sigmoi" - "dParameter\0227\n\006engine\030\001 \001(\0162\036.caffe.Sigmo" - "idParameter.Engine:\007DEFAULT\"+\n\006Engine\022\013\n" - "\007DEFAULT\020\000\022\t\n\005CAFFE\020\001\022\t\n\005CUDNN\020\002\"L\n\016Slic" - "eParameter\022\017\n\004axis\030\003 \001(\005:\0011\022\023\n\013slice_poi" - "nt\030\002 \003(\r\022\024\n\tslice_dim\030\001 \001(\r:\0011\"\211\001\n\020Softm" - "axParameter\0227\n\006engine\030\001 \001(\0162\036.caffe.Soft" - "maxParameter.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\"r\n\rTanHParameter\0224\n\006engine\030\001 " - "\001(\0162\033.caffe.TanHParameter.Engine:\007DEFAUL" - "T\"+\n\006Engine\022\013\n\007DEFAULT\020\000\022\t\n\005CAFFE\020\001\022\t\n\005C" - "UDNN\020\002\"*\n\022ThresholdParameter\022\024\n\tthreshol" - "d\030\001 \001(\002:\0010\"\301\002\n\023WindowDataParameter\022\016\n\006so" - "urce\030\001 \001(\t\022\020\n\005scale\030\002 \001(\002:\0011\022\021\n\tmean_fil" - "e\030\003 \001(\t\022\022\n\nbatch_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_t" - "hreshold\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\013con" - "text_pad\030\n \001(\r:\0010\022\027\n\tcrop_mode\030\013 \001(\t:\004wa" - "rp\022\033\n\014cache_images\030\014 \001(\010:\005false\022\025\n\013root_" - "folder\030\r \001(\t:\000\"\353\001\n\014SPPParameter\022\026\n\016pyram" - "id_height\030\001 \001(\r\0221\n\004pool\030\002 \001(\0162\036.caffe.SP" - "PParameter.PoolMethod:\003MAX\0223\n\006engine\030\006 \001" - "(\0162\032.caffe.SPPParameter.Engine:\007DEFAULT\"" - ".\n\nPoolMethod\022\007\n\003MAX\020\000\022\007\n\003AVE\020\001\022\016\n\nSTOCH" - "ASTIC\020\002\"+\n\006Engine\022\013\n\007DEFAULT\020\000\022\t\n\005CAFFE\020" - "\001\022\t\n\005CUDNN\020\002\"\340\023\n\020V1LayerParameter\022\016\n\006bot" - "tom\030\002 \003(\t\022\013\n\003top\030\003 \003(\t\022\014\n\004name\030\004 \001(\t\022$\n\007" - "include\030 \003(\0132\023.caffe.NetStateRule\022$\n\007ex" - "clude\030! \003(\0132\023.caffe.NetStateRule\022/\n\004type" - "\030\005 \001(\0162!.caffe.V1LayerParameter.LayerTyp" - "e\022\037\n\005blobs\030\006 \003(\0132\020.caffe.BlobProto\022\016\n\005pa" - "ram\030\351\007 \003(\t\022>\n\017blob_share_mode\030\352\007 \003(\0162$.c" - "affe.V1LayerParameter.DimCheckMode\022\020\n\010bl" - "obs_lr\030\007 \003(\002\022\024\n\014weight_decay\030\010 \003(\002\022\023\n\013lo" - "ss_weight\030# \003(\002\0220\n\016accuracy_param\030\033 \001(\0132" - "\030.caffe.AccuracyParameter\022,\n\014argmax_para" - "m\030\027 \001(\0132\026.caffe.ArgMaxParameter\022,\n\014conca" - "t_param\030\t \001(\0132\026.caffe.ConcatParameter\022\?\n" - "\026contrastive_loss_param\030( \001(\0132\037.caffe.Co" - "ntrastiveLossParameter\0226\n\021convolution_pa" - "ram\030\n \001(\0132\033.caffe.ConvolutionParameter\022(" - "\n\ndata_param\030\013 \001(\0132\024.caffe.DataParameter" - "\022.\n\rdropout_param\030\014 \001(\0132\027.caffe.DropoutP" - "arameter\0223\n\020dummy_data_param\030\032 \001(\0132\031.caf" - "fe.DummyDataParameter\022.\n\reltwise_param\030\030" - " \001(\0132\027.caffe.EltwiseParameter\022&\n\texp_par" - "am\030) \001(\0132\023.caffe.ExpParameter\0221\n\017hdf5_da" - "ta_param\030\r \001(\0132\030.caffe.HDF5DataParameter" - "\0225\n\021hdf5_output_param\030\016 \001(\0132\032.caffe.HDF5" - "OutputParameter\0223\n\020hinge_loss_param\030\035 \001(" - "\0132\031.caffe.HingeLossParameter\0223\n\020image_da" - "ta_param\030\017 \001(\0132\031.caffe.ImageDataParamete" - "r\0229\n\023infogain_loss_param\030\020 \001(\0132\034.caffe.I" - "nfogainLossParameter\0229\n\023inner_product_pa" - "ram\030\021 \001(\0132\034.caffe.InnerProductParameter\022" - "&\n\tlrn_param\030\022 \001(\0132\023.caffe.LRNParameter\022" - "5\n\021memory_data_param\030\026 \001(\0132\032.caffe.Memor" - "yDataParameter\022&\n\tmvn_param\030\" \001(\0132\023.caff" - "e.MVNParameter\022.\n\rpooling_param\030\023 \001(\0132\027." - "caffe.PoolingParameter\022*\n\013power_param\030\025 " - "\001(\0132\025.caffe.PowerParameter\022(\n\nrelu_param" - "\030\036 \001(\0132\024.caffe.ReLUParameter\022.\n\rsigmoid_" - "param\030& \001(\0132\027.caffe.SigmoidParameter\022.\n\r" - "softmax_param\030\' \001(\0132\027.caffe.SoftmaxParam" - "eter\022*\n\013slice_param\030\037 \001(\0132\025.caffe.SliceP" - "arameter\022(\n\ntanh_param\030% \001(\0132\024.caffe.Tan" - "HParameter\0222\n\017threshold_param\030\031 \001(\0132\031.ca" - "ffe.ThresholdParameter\0225\n\021window_data_pa" - "ram\030\024 \001(\0132\032.caffe.WindowDataParameter\0227\n" - "\017transform_param\030$ \001(\0132\036.caffe.Transform" - "ationParameter\022(\n\nloss_param\030* \001(\0132\024.caf" - "fe.LossParameter\022&\n\005layer\030\001 \001(\0132\027.caffe." - "V0LayerParameter\"\330\004\n\tLayerType\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\020CONTRASTIVE_LOSS" - "\020%\022\017\n\013CONVOLUTION\020\004\022\010\n\004DATA\020\005\022\021\n\rDECONVO" - "LUTION\020\'\022\013\n\007DROPOUT\020\006\022\016\n\nDUMMY_DATA\020 \022\022\n" - "\016EUCLIDEAN_LOSS\020\007\022\013\n\007ELTWISE\020\031\022\007\n\003EXP\020&\022" - "\013\n\007FLATTEN\020\010\022\r\n\tHDF5_DATA\020\t\022\017\n\013HDF5_OUTP" - "UT\020\n\022\016\n\nHINGE_LOSS\020\034\022\n\n\006IM2COL\020\013\022\016\n\nIMAG" - "E_DATA\020\014\022\021\n\rINFOGAIN_LOSS\020\r\022\021\n\rINNER_PRO" - "DUCT\020\016\022\007\n\003LRN\020\017\022\017\n\013MEMORY_DATA\020\035\022\035\n\031MULT" - "INOMIAL_LOGISTIC_LOSS\020\020\022\007\n\003MVN\020\"\022\013\n\007POOL" - "ING\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_LOSS\020\033\022\013\n\007SILEN" - "CE\020$\022\013\n\007SOFTMAX\020\024\022\020\n\014SOFTMAX_LOSS\020\025\022\t\n\005S" - "PLIT\020\026\022\t\n\005SLICE\020!\022\010\n\004TANH\020\027\022\017\n\013WINDOW_DA" - "TA\020\030\022\r\n\tTHRESHOLD\020\037\"*\n\014DimCheckMode\022\n\n\006S" - "TRICT\020\000\022\016\n\nPERMISSIVE\020\001\"\375\007\n\020V0LayerParam" - "eter\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\022-\n\r" - "weight_filler\030\005 \001(\0132\026.caffe.FillerParame" - "ter\022+\n\013bias_filler\030\006 \001(\0132\026.caffe.FillerP" - "arameter\022\016\n\003pad\030\007 \001(\r:\0010\022\022\n\nkernelsize\030\010" - " \001(\r\022\020\n\005group\030\t \001(\r:\0011\022\021\n\006stride\030\n \001(\r:\001" - "1\0225\n\004pool\030\013 \001(\0162\".caffe.V0LayerParameter" - ".PoolMethod:\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\006source\030\020 \001(\t\022\020\n\005scale\030\021 \001(\002:\0011\022\020\n\010mea" - "nfile\030\022 \001(\t\022\021\n\tbatchsize\030\023 \001(\r\022\023\n\010cropsi" - "ze\030\024 \001(\r:\0010\022\025\n\006mirror\030\025 \001(\010:\005false\022\037\n\005bl" - "obs\0302 \003(\0132\020.caffe.BlobProto\022\020\n\010blobs_lr\030" - "3 \003(\002\022\024\n\014weight_decay\0304 \003(\002\022\024\n\trand_skip" - "\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_f" - "g_fraction\0308 \001(\002:\0040.25\022\032\n\017det_context_pa" - "d\030: \001(\r:\0010\022\033\n\rdet_crop_mode\030; \001(\t:\004warp\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_width" - "\030\? \001(\005:\0010\022\035\n\016shuffle_images\030@ \001(\010:\005false" - "\022\025\n\nconcat_dim\030A \001(\r:\0011\0226\n\021hdf5_output_p" - "aram\030\351\007 \001(\0132\032.caffe.HDF5OutputParameter\"" - ".\n\nPoolMethod\022\007\n\003MAX\020\000\022\007\n\003AVE\020\001\022\016\n\nSTOCH" - "ASTIC\020\002\"W\n\016PReLUParameter\022&\n\006filler\030\001 \001(" - "\0132\026.caffe.FillerParameter\022\035\n\016channel_sha" - "red\030\002 \001(\010:\005false*\034\n\005Phase\022\t\n\005TRAIN\020\000\022\010\n\004" - "TEST\020\001", 13246); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "caffe.proto", &protobuf_RegisterTypes); - BlobShape::default_instance_ = new BlobShape(); - BlobProto::default_instance_ = new BlobProto(); - BlobProtoVector::default_instance_ = new BlobProtoVector(); - Datum::default_instance_ = new Datum(); - FillerParameter::_default_type_ = - new ::std::string("constant", 8); - FillerParameter::default_instance_ = new FillerParameter(); - NetParameter::default_instance_ = new NetParameter(); - SolverParameter::_default_regularization_type_ = - new ::std::string("L2", 2); - SolverParameter::default_instance_ = new SolverParameter(); - SolverState::default_instance_ = new SolverState(); - NetState::default_instance_ = new NetState(); - NetStateRule::default_instance_ = new NetStateRule(); - ParamSpec::default_instance_ = new ParamSpec(); - LayerParameter::default_instance_ = new LayerParameter(); - TransformationParameter::default_instance_ = new TransformationParameter(); - LossParameter::default_instance_ = new LossParameter(); - AccuracyParameter::default_instance_ = new AccuracyParameter(); - ArgMaxParameter::default_instance_ = new ArgMaxParameter(); - ConcatParameter::default_instance_ = new ConcatParameter(); - ContrastiveLossParameter::default_instance_ = new ContrastiveLossParameter(); - ConvolutionParameter::default_instance_ = new ConvolutionParameter(); - DataParameter::default_instance_ = new DataParameter(); - DropoutParameter::default_instance_ = new DropoutParameter(); - DummyDataParameter::default_instance_ = new DummyDataParameter(); - EltwiseParameter::default_instance_ = new EltwiseParameter(); - ExpParameter::default_instance_ = new ExpParameter(); - FlattenParameter::default_instance_ = new FlattenParameter(); - HDF5DataParameter::default_instance_ = new HDF5DataParameter(); - HDF5OutputParameter::default_instance_ = new HDF5OutputParameter(); - HingeLossParameter::default_instance_ = new HingeLossParameter(); - ImageDataParameter::default_instance_ = new ImageDataParameter(); - InfogainLossParameter::default_instance_ = new InfogainLossParameter(); - InnerProductParameter::default_instance_ = new InnerProductParameter(); - LogParameter::default_instance_ = new LogParameter(); - LRNParameter::default_instance_ = new LRNParameter(); - MemoryDataParameter::default_instance_ = new MemoryDataParameter(); - MVNParameter::default_instance_ = new MVNParameter(); - PoolingParameter::default_instance_ = new PoolingParameter(); - PowerParameter::default_instance_ = new PowerParameter(); - PythonParameter::default_instance_ = new PythonParameter(); - ReductionParameter::default_instance_ = new ReductionParameter(); - ReLUParameter::default_instance_ = new ReLUParameter(); - ReshapeParameter::default_instance_ = new ReshapeParameter(); - SigmoidParameter::default_instance_ = new SigmoidParameter(); - SliceParameter::default_instance_ = new SliceParameter(); - SoftmaxParameter::default_instance_ = new SoftmaxParameter(); - TanHParameter::default_instance_ = new TanHParameter(); - ThresholdParameter::default_instance_ = new ThresholdParameter(); - WindowDataParameter::_default_crop_mode_ = - new ::std::string("warp", 4); - WindowDataParameter::default_instance_ = new WindowDataParameter(); - SPPParameter::default_instance_ = new SPPParameter(); - V1LayerParameter::default_instance_ = new V1LayerParameter(); - V0LayerParameter::_default_det_crop_mode_ = - new ::std::string("warp", 4); - V0LayerParameter::default_instance_ = new V0LayerParameter(); - PReLUParameter::default_instance_ = new PReLUParameter(); - BlobShape::default_instance_->InitAsDefaultInstance(); - BlobProto::default_instance_->InitAsDefaultInstance(); - BlobProtoVector::default_instance_->InitAsDefaultInstance(); - Datum::default_instance_->InitAsDefaultInstance(); - FillerParameter::default_instance_->InitAsDefaultInstance(); - NetParameter::default_instance_->InitAsDefaultInstance(); - SolverParameter::default_instance_->InitAsDefaultInstance(); - SolverState::default_instance_->InitAsDefaultInstance(); - NetState::default_instance_->InitAsDefaultInstance(); - NetStateRule::default_instance_->InitAsDefaultInstance(); - ParamSpec::default_instance_->InitAsDefaultInstance(); - LayerParameter::default_instance_->InitAsDefaultInstance(); - TransformationParameter::default_instance_->InitAsDefaultInstance(); - LossParameter::default_instance_->InitAsDefaultInstance(); - AccuracyParameter::default_instance_->InitAsDefaultInstance(); - ArgMaxParameter::default_instance_->InitAsDefaultInstance(); - ConcatParameter::default_instance_->InitAsDefaultInstance(); - ContrastiveLossParameter::default_instance_->InitAsDefaultInstance(); - ConvolutionParameter::default_instance_->InitAsDefaultInstance(); - DataParameter::default_instance_->InitAsDefaultInstance(); - DropoutParameter::default_instance_->InitAsDefaultInstance(); - DummyDataParameter::default_instance_->InitAsDefaultInstance(); - EltwiseParameter::default_instance_->InitAsDefaultInstance(); - ExpParameter::default_instance_->InitAsDefaultInstance(); - FlattenParameter::default_instance_->InitAsDefaultInstance(); - HDF5DataParameter::default_instance_->InitAsDefaultInstance(); - HDF5OutputParameter::default_instance_->InitAsDefaultInstance(); - HingeLossParameter::default_instance_->InitAsDefaultInstance(); - ImageDataParameter::default_instance_->InitAsDefaultInstance(); - InfogainLossParameter::default_instance_->InitAsDefaultInstance(); - InnerProductParameter::default_instance_->InitAsDefaultInstance(); - LogParameter::default_instance_->InitAsDefaultInstance(); - LRNParameter::default_instance_->InitAsDefaultInstance(); - MemoryDataParameter::default_instance_->InitAsDefaultInstance(); - MVNParameter::default_instance_->InitAsDefaultInstance(); - PoolingParameter::default_instance_->InitAsDefaultInstance(); - PowerParameter::default_instance_->InitAsDefaultInstance(); - PythonParameter::default_instance_->InitAsDefaultInstance(); - ReductionParameter::default_instance_->InitAsDefaultInstance(); - ReLUParameter::default_instance_->InitAsDefaultInstance(); - ReshapeParameter::default_instance_->InitAsDefaultInstance(); - SigmoidParameter::default_instance_->InitAsDefaultInstance(); - SliceParameter::default_instance_->InitAsDefaultInstance(); - SoftmaxParameter::default_instance_->InitAsDefaultInstance(); - TanHParameter::default_instance_->InitAsDefaultInstance(); - ThresholdParameter::default_instance_->InitAsDefaultInstance(); - WindowDataParameter::default_instance_->InitAsDefaultInstance(); - SPPParameter::default_instance_->InitAsDefaultInstance(); - V1LayerParameter::default_instance_->InitAsDefaultInstance(); - V0LayerParameter::default_instance_->InitAsDefaultInstance(); - PReLUParameter::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_caffe_2eproto); -} - -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_caffe_2eproto { - StaticDescriptorInitializer_caffe_2eproto() { - protobuf_AddDesc_caffe_2eproto(); - } -} static_descriptor_initializer_caffe_2eproto_; -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; - } -} - - -// =================================================================== - -#ifndef _MSC_VER -const int BlobShape::kDimFieldNumber; -#endif // !_MSC_VER - -BlobShape::BlobShape() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void BlobShape::InitAsDefaultInstance() { -} - -BlobShape::BlobShape(const BlobShape& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void BlobShape::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -BlobShape::~BlobShape() { - SharedDtor(); -} - -void BlobShape::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -BlobShape* BlobShape::default_instance_ = NULL; - -BlobShape* BlobShape::New() const { - return new BlobShape; -} - -void BlobShape::Clear() { - dim_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool BlobShape::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated int64 dim = 1 [packed = true]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_dim()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 10, input, this->mutable_dim()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void BlobShape::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* BlobShape::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int BlobShape::ByteSize() const { - int total_size = 0; - - // repeated int64 dim = 1 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->dim_size(); 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); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _dim_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void BlobShape::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BlobShape* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void BlobShape::MergeFrom(const BlobShape& from) { - GOOGLE_CHECK_NE(&from, this); - dim_.MergeFrom(from.dim_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void BlobShape::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BlobShape::CopyFrom(const BlobShape& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BlobShape::IsInitialized() const { - - return true; -} - -void BlobShape::Swap(BlobShape* other) { - if (other != this) { - dim_.Swap(&other->dim_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int BlobProto::kShapeFieldNumber; -const int BlobProto::kDataFieldNumber; -const int BlobProto::kDiffFieldNumber; -const int BlobProto::kNumFieldNumber; -const int BlobProto::kChannelsFieldNumber; -const int BlobProto::kHeightFieldNumber; -const int BlobProto::kWidthFieldNumber; -#endif // !_MSC_VER - -BlobProto::BlobProto() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void BlobProto::InitAsDefaultInstance() { - shape_ = const_cast< ::caffe::BlobShape*>(&::caffe::BlobShape::default_instance()); -} - -BlobProto::BlobProto(const BlobProto& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void BlobProto::SharedCtor() { - _cached_size_ = 0; - shape_ = NULL; - num_ = 0; - channels_ = 0; - height_ = 0; - width_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -BlobProto::~BlobProto() { - SharedDtor(); -} - -void BlobProto::SharedDtor() { - if (this != 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_AssignDescriptorsOnce(); - return BlobProto_descriptor_; -} - -const BlobProto& BlobProto::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -BlobProto* BlobProto::default_instance_ = NULL; - -BlobProto* BlobProto::New() const { - return new BlobProto; -} - -void BlobProto::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_shape()) { - if (shape_ != NULL) shape_->::caffe::BlobShape::Clear(); - } - num_ = 0; - channels_ = 0; - height_ = 0; - width_ = 0; - } - data_.Clear(); - diff_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool BlobProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 num = 1 [default = 0]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &num_))); - set_has_num(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_channels; - break; - } - - // optional int32 channels = 2 [default = 0]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_channels: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &channels_))); - set_has_channels(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_height; - break; - } - - // optional int32 height = 3 [default = 0]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_height: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &height_))); - set_has_height(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_width; - break; - } - - // optional int32 width = 4 [default = 0]; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_width: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &width_))); - set_has_width(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(42)) goto parse_data; - break; - } - - // repeated float data = 5 [packed = true]; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_data: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_data()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_FIXED32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 42, input, this->mutable_data()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(50)) goto parse_diff; - break; - } - - // repeated float diff = 6 [packed = true]; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_diff: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_diff()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_FIXED32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 50, input, this->mutable_diff()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(58)) goto parse_shape; - break; - } - - // optional .caffe.BlobShape shape = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_shape: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_shape())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void BlobProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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 .caffe.BlobShape shape = 7; - if (has_shape()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->shape(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* BlobProto::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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 .caffe.BlobShape shape = 7; - if (has_shape()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->shape(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int BlobProto::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .caffe.BlobShape shape = 7; - if (has_shape()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - 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()); - } - - } - // repeated float data = 5 [packed = true]; - { - int data_size = 0; - data_size = 4 * this->data_size(); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _data_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated float diff = 6 [packed = true]; - { - int data_size = 0; - data_size = 4 * this->diff_size(); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _diff_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void BlobProto::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BlobProto* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void BlobProto::MergeFrom(const BlobProto& from) { - GOOGLE_CHECK_NE(&from, this); - data_.MergeFrom(from.data_); - diff_.MergeFrom(from.diff_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_shape()) { - mutable_shape()->::caffe::BlobShape::MergeFrom(from.shape()); - } - if (from.has_num()) { - set_num(from.num()); - } - if (from.has_channels()) { - set_channels(from.channels()); - } - if (from.has_height()) { - set_height(from.height()); - } - if (from.has_width()) { - set_width(from.width()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void BlobProto::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BlobProto::CopyFrom(const BlobProto& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BlobProto::IsInitialized() const { - - return true; -} - -void BlobProto::Swap(BlobProto* other) { - if (other != this) { - std::swap(shape_, other->shape_); - data_.Swap(&other->data_); - diff_.Swap(&other->diff_); - 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]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int BlobProtoVector::kBlobsFieldNumber; -#endif // !_MSC_VER - -BlobProtoVector::BlobProtoVector() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void BlobProtoVector::InitAsDefaultInstance() { -} - -BlobProtoVector::BlobProtoVector(const BlobProtoVector& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void BlobProtoVector::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -BlobProtoVector::~BlobProtoVector() { - SharedDtor(); -} - -void BlobProtoVector::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -BlobProtoVector* BlobProtoVector::default_instance_ = NULL; - -BlobProtoVector* BlobProtoVector::New() const { - return new BlobProtoVector; -} - -void BlobProtoVector::Clear() { - blobs_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool BlobProtoVector::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .caffe.BlobProto blobs = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_blobs: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_blobs())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(10)) goto parse_blobs; - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void BlobProtoVector::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // repeated .caffe.BlobProto blobs = 1; - for (int i = 0; i < this->blobs_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->blobs(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* BlobProtoVector::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // repeated .caffe.BlobProto blobs = 1; - for (int i = 0; i < this->blobs_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->blobs(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int BlobProtoVector::ByteSize() const { - int total_size = 0; - - // repeated .caffe.BlobProto blobs = 1; - total_size += 1 * this->blobs_size(); - for (int i = 0; i < this->blobs_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->blobs(i)); - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void BlobProtoVector::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BlobProtoVector* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void BlobProtoVector::MergeFrom(const BlobProtoVector& from) { - GOOGLE_CHECK_NE(&from, this); - blobs_.MergeFrom(from.blobs_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void BlobProtoVector::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BlobProtoVector::CopyFrom(const BlobProtoVector& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BlobProtoVector::IsInitialized() const { - - return true; -} - -void BlobProtoVector::Swap(BlobProtoVector* other) { - if (other != this) { - blobs_.Swap(&other->blobs_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -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 // !_MSC_VER - -Datum::Datum() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void Datum::InitAsDefaultInstance() { -} - -Datum::Datum(const Datum& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void Datum::SharedCtor() { - _cached_size_ = 0; - channels_ = 0; - height_ = 0; - width_ = 0; - data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - label_ = 0; - encoded_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -Datum::~Datum() { - SharedDtor(); -} - -void Datum::SharedDtor() { - if (data_ != &::google::protobuf::internal::kEmptyString) { - delete data_; - } - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -Datum* Datum::default_instance_ = NULL; - -Datum* Datum::New() const { - return new Datum; -} - -void Datum::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - channels_ = 0; - height_ = 0; - width_ = 0; - if (has_data()) { - if (data_ != &::google::protobuf::internal::kEmptyString) { - data_->clear(); - } - } - label_ = 0; - encoded_ = false; - } - float_data_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Datum::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 channels = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &channels_))); - set_has_channels(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_height; - break; - } - - // optional int32 height = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_height: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &height_))); - set_has_height(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_width; - break; - } - - // optional int32 width = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_width: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &width_))); - set_has_width(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_data; - break; - } - - // optional bytes data = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_data: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_data())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_label; - break; - } - - // optional int32 label = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_label: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &label_))); - set_has_label(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(53)) goto parse_float_data; - break; - } - - // repeated float float_data = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_float_data()))); - } else { - goto handle_uninterpreted; - } - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_encoded: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &encoded_))); - set_has_encoded(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void Datum::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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::WriteBytes( - 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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* Datum::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int Datum::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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; - { - int data_size = 0; - data_size = 4 * this->float_data_size(); - total_size += 1 * this->float_data_size() + data_size; - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void Datum::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Datum* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Datum::MergeFrom(const Datum& from) { - GOOGLE_CHECK_NE(&from, this); - float_data_.MergeFrom(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_data(from.data()); - } - if (from.has_label()) { - set_label(from.label()); - } - if (from.has_encoded()) { - set_encoded(from.encoded()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Datum::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Datum::CopyFrom(const Datum& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Datum::IsInitialized() const { - - return true; -} - -void Datum::Swap(Datum* other) { - if (other != this) { - std::swap(channels_, other->channels_); - std::swap(height_, other->height_); - std::swap(width_, other->width_); - std::swap(data_, other->data_); - std::swap(label_, other->label_); - float_data_.Swap(&other->float_data_); - std::swap(encoded_, other->encoded_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* FillerParameter_VarianceNorm_descriptor() { - protobuf_AssignDescriptorsOnce(); - return FillerParameter_VarianceNorm_descriptor_; -} -bool FillerParameter_VarianceNorm_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const FillerParameter_VarianceNorm FillerParameter::FAN_IN; -const FillerParameter_VarianceNorm FillerParameter::FAN_OUT; -const FillerParameter_VarianceNorm FillerParameter::AVERAGE; -const FillerParameter_VarianceNorm FillerParameter::VarianceNorm_MIN; -const FillerParameter_VarianceNorm FillerParameter::VarianceNorm_MAX; -const int FillerParameter::VarianceNorm_ARRAYSIZE; -#endif // _MSC_VER -::std::string* FillerParameter::_default_type_ = NULL; -#ifndef _MSC_VER -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 // !_MSC_VER - -FillerParameter::FillerParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void FillerParameter::InitAsDefaultInstance() { -} - -FillerParameter::FillerParameter(const FillerParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void FillerParameter::SharedCtor() { - _cached_size_ = 0; - type_ = const_cast< ::std::string*>(_default_type_); - value_ = 0; - min_ = 0; - max_ = 1; - mean_ = 0; - std_ = 1; - sparse_ = -1; - variance_norm_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -FillerParameter::~FillerParameter() { - SharedDtor(); -} - -void FillerParameter::SharedDtor() { - if (type_ != _default_type_) { - delete type_; - } - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -FillerParameter* FillerParameter::default_instance_ = NULL; - -FillerParameter* FillerParameter::New() const { - return new FillerParameter; -} - -void FillerParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_type()) { - if (type_ != _default_type_) { - type_->assign(*_default_type_); - } - } - value_ = 0; - min_ = 0; - max_ = 1; - mean_ = 0; - std_ = 1; - sparse_ = -1; - variance_norm_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool FillerParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string type = 1 [default = "constant"]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_type())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(21)) goto parse_value; - break; - } - - // optional float value = 2 [default = 0]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_value: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &value_))); - set_has_value(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(29)) goto parse_min; - break; - } - - // optional float min = 3 [default = 0]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_min: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &min_))); - set_has_min(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(37)) goto parse_max; - break; - } - - // optional float max = 4 [default = 1]; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_max: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &max_))); - set_has_max(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(45)) goto parse_mean; - break; - } - - // optional float mean = 5 [default = 0]; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_mean: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &mean_))); - set_has_mean(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(53)) goto parse_std; - break; - } - - // optional float std = 6 [default = 1]; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_std: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &std_))); - set_has_std(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(56)) goto parse_sparse; - break; - } - - // optional int32 sparse = 7 [default = -1]; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_sparse: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &sparse_))); - set_has_sparse(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(64)) goto parse_variance_norm; - break; - } - - // optional .caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN]; - case 8: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_variance_norm: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::FillerParameter_VarianceNorm_IsValid(value)) { - set_variance_norm(static_cast< ::caffe::FillerParameter_VarianceNorm >(value)); - } else { - mutable_unknown_fields()->AddVarint(8, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void FillerParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional string type = 1 [default = "constant"]; - if (has_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 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 .caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN]; - if (has_variance_norm()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 8, this->variance_norm(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* FillerParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional string type = 1 [default = "constant"]; - if (has_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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 .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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int FillerParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 .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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void FillerParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const FillerParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void FillerParameter::MergeFrom(const FillerParameter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_type()) { - set_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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void FillerParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FillerParameter::CopyFrom(const FillerParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FillerParameter::IsInitialized() const { - - return true; -} - -void FillerParameter::Swap(FillerParameter* other) { - if (other != this) { - std::swap(type_, 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]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -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 // !_MSC_VER - -NetParameter::NetParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void NetParameter::InitAsDefaultInstance() { - state_ = const_cast< ::caffe::NetState*>(&::caffe::NetState::default_instance()); -} - -NetParameter::NetParameter(const NetParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void NetParameter::SharedCtor() { - _cached_size_ = 0; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - force_backward_ = false; - state_ = NULL; - debug_info_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -NetParameter::~NetParameter() { - SharedDtor(); -} - -void NetParameter::SharedDtor() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (this != 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_AssignDescriptorsOnce(); - return NetParameter_descriptor_; -} - -const NetParameter& NetParameter::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -NetParameter* NetParameter::default_instance_ = NULL; - -NetParameter* NetParameter::New() const { - return new NetParameter; -} - -void NetParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_name()) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - } - force_backward_ = false; - if (has_state()) { - if (state_ != NULL) state_->::caffe::NetState::Clear(); - } - debug_info_ = false; - } - input_.Clear(); - input_shape_.Clear(); - input_dim_.Clear(); - layer_.Clear(); - layers_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool NetParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string name = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_layers; - break; - } - - // repeated .caffe.V1LayerParameter layers = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_layers: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_layers())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_layers; - if (input->ExpectTag(26)) goto parse_input; - break; - } - - // repeated string input = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_input: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_input())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->input(this->input_size() - 1).data(), - this->input(this->input_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_input; - if (input->ExpectTag(32)) goto parse_input_dim; - break; - } - - // repeated int32 input_dim = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, this->mutable_input_dim()))); - } else { - goto handle_uninterpreted; - } - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_force_backward: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &force_backward_))); - set_has_force_backward(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(50)) goto parse_state; - break; - } - - // optional .caffe.NetState state = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_state: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_state())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(56)) goto parse_debug_info; - break; - } - - // optional bool debug_info = 7 [default = false]; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_debug_info: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &debug_info_))); - set_has_debug_info(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(66)) goto parse_input_shape; - break; - } - - // repeated .caffe.BlobShape input_shape = 8; - case 8: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_input_shape: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_input_shape())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(66)) goto parse_input_shape; - if (input->ExpectTag(802)) goto parse_layer; - break; - } - - // repeated .caffe.LayerParameter layer = 100; - case 100: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_layer: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_layer())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(802)) goto parse_layer; - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void NetParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->name(), output); - } - - // repeated .caffe.V1LayerParameter layers = 2; - for (int i = 0; i < this->layers_size(); 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::VerifyUTF8String( - this->input(i).data(), this->input(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::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 .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 .caffe.BlobShape input_shape = 8; - for (int i = 0; i < this->input_shape_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, this->input_shape(i), output); - } - - // repeated .caffe.LayerParameter layer = 100; - for (int i = 0; i < this->layer_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 100, this->layer(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* NetParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // repeated .caffe.V1LayerParameter layers = 2; - for (int i = 0; i < this->layers_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->layers(i), target); - } - - // repeated string input = 3; - for (int i = 0; i < this->input_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->input(i).data(), this->input(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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 .caffe.NetState state = 6; - if (has_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->state(), target); - } - - // optional bool debug_info = 7 [default = false]; - if (has_debug_info()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->debug_info(), target); - } - - // repeated .caffe.BlobShape input_shape = 8; - for (int i = 0; i < this->input_shape_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 8, this->input_shape(i), target); - } - - // repeated .caffe.LayerParameter layer = 100; - for (int i = 0; i < this->layer_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 100, this->layer(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int NetParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 .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 * this->input_size(); - for (int i = 0; i < this->input_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->input(i)); - } - - // repeated .caffe.BlobShape input_shape = 8; - total_size += 1 * this->input_shape_size(); - for (int i = 0; i < this->input_shape_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->input_shape(i)); - } - - // repeated int32 input_dim = 4; - { - int data_size = 0; - for (int i = 0; i < this->input_dim_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int32Size(this->input_dim(i)); - } - total_size += 1 * this->input_dim_size() + data_size; - } - - // repeated .caffe.LayerParameter layer = 100; - total_size += 2 * this->layer_size(); - for (int i = 0; i < this->layer_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->layer(i)); - } - - // repeated .caffe.V1LayerParameter layers = 2; - total_size += 1 * this->layers_size(); - for (int i = 0; i < this->layers_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->layers(i)); - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void NetParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const NetParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void NetParameter::MergeFrom(const NetParameter& from) { - GOOGLE_CHECK_NE(&from, this); - input_.MergeFrom(from.input_); - input_shape_.MergeFrom(from.input_shape_); - input_dim_.MergeFrom(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_name(from.name()); - } - if (from.has_force_backward()) { - set_force_backward(from.force_backward()); - } - if (from.has_state()) { - mutable_state()->::caffe::NetState::MergeFrom(from.state()); - } - if (from.has_debug_info()) { - set_debug_info(from.debug_info()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void NetParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NetParameter::CopyFrom(const NetParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NetParameter::IsInitialized() const { - - return true; -} - -void NetParameter::Swap(NetParameter* other) { - if (other != this) { - std::swap(name_, other->name_); - input_.Swap(&other->input_); - input_shape_.Swap(&other->input_shape_); - input_dim_.Swap(&other->input_dim_); - std::swap(force_backward_, other->force_backward_); - std::swap(state_, other->state_); - std::swap(debug_info_, other->debug_info_); - layer_.Swap(&other->layer_); - layers_.Swap(&other->layers_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* SolverParameter_SolverMode_descriptor() { - protobuf_AssignDescriptorsOnce(); - return SolverParameter_SolverMode_descriptor_; -} -bool SolverParameter_SolverMode_IsValid(int value) { - switch(value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const SolverParameter_SolverMode SolverParameter::CPU; -const SolverParameter_SolverMode SolverParameter::GPU; -const SolverParameter_SolverMode SolverParameter::SolverMode_MIN; -const SolverParameter_SolverMode SolverParameter::SolverMode_MAX; -const int SolverParameter::SolverMode_ARRAYSIZE; -#endif // _MSC_VER -const ::google::protobuf::EnumDescriptor* SolverParameter_SolverType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return SolverParameter_SolverType_descriptor_; -} -bool SolverParameter_SolverType_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const SolverParameter_SolverType SolverParameter::SGD; -const SolverParameter_SolverType SolverParameter::NESTEROV; -const SolverParameter_SolverType SolverParameter::ADAGRAD; -const SolverParameter_SolverType SolverParameter::SolverType_MIN; -const SolverParameter_SolverType SolverParameter::SolverType_MAX; -const int SolverParameter::SolverType_ARRAYSIZE; -#endif // _MSC_VER -::std::string* SolverParameter::_default_regularization_type_ = NULL; -#ifndef _MSC_VER -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::kSolverModeFieldNumber; -const int SolverParameter::kDeviceIdFieldNumber; -const int SolverParameter::kRandomSeedFieldNumber; -const int SolverParameter::kSolverTypeFieldNumber; -const int SolverParameter::kDeltaFieldNumber; -const int SolverParameter::kDebugInfoFieldNumber; -const int SolverParameter::kSnapshotAfterTrainFieldNumber; -#endif // !_MSC_VER - -SolverParameter::SolverParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void SolverParameter::InitAsDefaultInstance() { - net_param_ = const_cast< ::caffe::NetParameter*>(&::caffe::NetParameter::default_instance()); - train_net_param_ = const_cast< ::caffe::NetParameter*>(&::caffe::NetParameter::default_instance()); - train_state_ = const_cast< ::caffe::NetState*>(&::caffe::NetState::default_instance()); -} - -SolverParameter::SolverParameter(const SolverParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void SolverParameter::SharedCtor() { - _cached_size_ = 0; - net_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - net_param_ = NULL; - train_net_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - train_net_param_ = NULL; - train_state_ = NULL; - test_interval_ = 0; - test_compute_loss_ = false; - test_initialization_ = true; - base_lr_ = 0; - display_ = 0; - average_loss_ = 1; - max_iter_ = 0; - iter_size_ = 1; - lr_policy_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - gamma_ = 0; - power_ = 0; - momentum_ = 0; - weight_decay_ = 0; - regularization_type_ = const_cast< ::std::string*>(_default_regularization_type_); - stepsize_ = 0; - clip_gradients_ = -1; - snapshot_ = 0; - snapshot_prefix_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - snapshot_diff_ = false; - solver_mode_ = 1; - device_id_ = 0; - random_seed_ = GOOGLE_LONGLONG(-1); - solver_type_ = 0; - delta_ = 1e-08f; - debug_info_ = false; - snapshot_after_train_ = true; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -SolverParameter::~SolverParameter() { - SharedDtor(); -} - -void SolverParameter::SharedDtor() { - if (net_ != &::google::protobuf::internal::kEmptyString) { - delete net_; - } - if (train_net_ != &::google::protobuf::internal::kEmptyString) { - delete train_net_; - } - if (lr_policy_ != &::google::protobuf::internal::kEmptyString) { - delete lr_policy_; - } - if (regularization_type_ != _default_regularization_type_) { - delete regularization_type_; - } - if (snapshot_prefix_ != &::google::protobuf::internal::kEmptyString) { - delete snapshot_prefix_; - } - if (this != default_instance_) { - 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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -SolverParameter* SolverParameter::default_instance_ = NULL; - -SolverParameter* SolverParameter::New() const { - return new SolverParameter; -} - -void SolverParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_net()) { - if (net_ != &::google::protobuf::internal::kEmptyString) { - net_->clear(); - } - } - if (has_net_param()) { - if (net_param_ != NULL) net_param_->::caffe::NetParameter::Clear(); - } - if (has_train_net()) { - if (train_net_ != &::google::protobuf::internal::kEmptyString) { - train_net_->clear(); - } - } - if (has_train_net_param()) { - if (train_net_param_ != NULL) train_net_param_->::caffe::NetParameter::Clear(); - } - if (has_train_state()) { - if (train_state_ != NULL) train_state_->::caffe::NetState::Clear(); - } - } - if (_has_bits_[9 / 32] & (0xffu << (9 % 32))) { - test_interval_ = 0; - test_compute_loss_ = false; - test_initialization_ = true; - base_lr_ = 0; - display_ = 0; - average_loss_ = 1; - max_iter_ = 0; - } - if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { - iter_size_ = 1; - if (has_lr_policy()) { - if (lr_policy_ != &::google::protobuf::internal::kEmptyString) { - lr_policy_->clear(); - } - } - gamma_ = 0; - power_ = 0; - momentum_ = 0; - weight_decay_ = 0; - if (has_regularization_type()) { - if (regularization_type_ != _default_regularization_type_) { - regularization_type_->assign(*_default_regularization_type_); - } - } - stepsize_ = 0; - } - if (_has_bits_[25 / 32] & (0xffu << (25 % 32))) { - clip_gradients_ = -1; - snapshot_ = 0; - if (has_snapshot_prefix()) { - if (snapshot_prefix_ != &::google::protobuf::internal::kEmptyString) { - snapshot_prefix_->clear(); - } - } - snapshot_diff_ = false; - solver_mode_ = 1; - device_id_ = 0; - random_seed_ = GOOGLE_LONGLONG(-1); - } - if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) { - solver_type_ = 0; - delta_ = 1e-08f; - debug_info_ = false; - snapshot_after_train_ = true; - } - test_net_.Clear(); - test_net_param_.Clear(); - test_state_.Clear(); - test_iter_.Clear(); - stepvalue_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SolverParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string train_net = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_train_net())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->train_net().data(), this->train_net().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_test_net; - break; - } - - // repeated string test_net = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_test_net: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_test_net())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->test_net(this->test_net_size() - 1).data(), - this->test_net(this->test_net_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, this->mutable_test_iter()))); - } else { - goto handle_uninterpreted; - } - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_test_interval: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &test_interval_))); - set_has_test_interval(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(45)) goto parse_base_lr; - break; - } - - // optional float base_lr = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_base_lr: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &base_lr_))); - set_has_base_lr(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_display; - break; - } - - // optional int32 display = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_display: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &display_))); - set_has_display(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(56)) goto parse_max_iter; - break; - } - - // optional int32 max_iter = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_max_iter: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &max_iter_))); - set_has_max_iter(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(66)) goto parse_lr_policy; - break; - } - - // optional string lr_policy = 8; - case 8: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_lr_policy: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_lr_policy())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->lr_policy().data(), this->lr_policy().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(77)) goto parse_gamma; - break; - } - - // optional float gamma = 9; - case 9: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_gamma: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &gamma_))); - set_has_gamma(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(85)) goto parse_power; - break; - } - - // optional float power = 10; - case 10: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_power: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &power_))); - set_has_power(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(93)) goto parse_momentum; - break; - } - - // optional float momentum = 11; - case 11: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_momentum: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &momentum_))); - set_has_momentum(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(101)) goto parse_weight_decay; - break; - } - - // optional float weight_decay = 12; - case 12: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_weight_decay: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &weight_decay_))); - set_has_weight_decay(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(104)) goto parse_stepsize; - break; - } - - // optional int32 stepsize = 13; - case 13: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_stepsize: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &stepsize_))); - set_has_stepsize(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(112)) goto parse_snapshot; - break; - } - - // optional int32 snapshot = 14 [default = 0]; - case 14: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_snapshot: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &snapshot_))); - set_has_snapshot(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(122)) goto parse_snapshot_prefix; - break; - } - - // optional string snapshot_prefix = 15; - case 15: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_snapshot_prefix: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_snapshot_prefix())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->snapshot_prefix().data(), this->snapshot_prefix().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(128)) goto parse_snapshot_diff; - break; - } - - // optional bool snapshot_diff = 16 [default = false]; - case 16: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_snapshot_diff: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &snapshot_diff_))); - set_has_snapshot_diff(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(136)) goto parse_solver_mode; - break; - } - - // optional .caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU]; - case 17: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_solver_mode: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::SolverParameter_SolverMode_IsValid(value)) { - set_solver_mode(static_cast< ::caffe::SolverParameter_SolverMode >(value)); - } else { - mutable_unknown_fields()->AddVarint(17, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(144)) goto parse_device_id; - break; - } - - // optional int32 device_id = 18 [default = 0]; - case 18: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_device_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &device_id_))); - set_has_device_id(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(152)) goto parse_test_compute_loss; - break; - } - - // optional bool test_compute_loss = 19 [default = false]; - case 19: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_test_compute_loss: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &test_compute_loss_))); - set_has_test_compute_loss(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(160)) goto parse_random_seed; - break; - } - - // optional int64 random_seed = 20 [default = -1]; - case 20: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_random_seed: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &random_seed_))); - set_has_random_seed(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(170)) goto parse_train_net_param; - break; - } - - // optional .caffe.NetParameter train_net_param = 21; - case 21: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_train_net_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_train_net_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(178)) goto parse_test_net_param; - break; - } - - // repeated .caffe.NetParameter test_net_param = 22; - case 22: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_test_net_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_test_net_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(178)) goto parse_test_net_param; - if (input->ExpectTag(184)) goto parse_debug_info; - break; - } - - // optional bool debug_info = 23 [default = false]; - case 23: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_debug_info: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &debug_info_))); - set_has_debug_info(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(194)) goto parse_net; - break; - } - - // optional string net = 24; - case 24: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_net: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_net())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->net().data(), this->net().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(202)) goto parse_net_param; - break; - } - - // optional .caffe.NetParameter net_param = 25; - case 25: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_net_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_net_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(210)) goto parse_train_state; - break; - } - - // optional .caffe.NetState train_state = 26; - case 26: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_train_state: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_train_state())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(218)) goto parse_test_state; - break; - } - - // repeated .caffe.NetState test_state = 27; - case 27: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_test_state: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_test_state())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(218)) goto parse_test_state; - if (input->ExpectTag(224)) goto parse_snapshot_after_train; - break; - } - - // optional bool snapshot_after_train = 28 [default = true]; - case 28: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_snapshot_after_train: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &snapshot_after_train_))); - set_has_snapshot_after_train(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(234)) goto parse_regularization_type; - break; - } - - // optional string regularization_type = 29 [default = "L2"]; - case 29: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_regularization_type: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_regularization_type())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->regularization_type().data(), this->regularization_type().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(240)) goto parse_solver_type; - break; - } - - // optional .caffe.SolverParameter.SolverType solver_type = 30 [default = SGD]; - case 30: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_solver_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::SolverParameter_SolverType_IsValid(value)) { - set_solver_type(static_cast< ::caffe::SolverParameter_SolverType >(value)); - } else { - mutable_unknown_fields()->AddVarint(30, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(253)) goto parse_delta; - break; - } - - // optional float delta = 31 [default = 1e-08]; - case 31: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_delta: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &delta_))); - set_has_delta(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(256)) goto parse_test_initialization; - break; - } - - // optional bool test_initialization = 32 [default = true]; - case 32: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_test_initialization: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &test_initialization_))); - set_has_test_initialization(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(264)) goto parse_average_loss; - break; - } - - // optional int32 average_loss = 33 [default = 1]; - case 33: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_average_loss: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &average_loss_))); - set_has_average_loss(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(272)) goto parse_stepvalue; - break; - } - - // repeated int32 stepvalue = 34; - case 34: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, this->mutable_stepvalue()))); - } else { - goto handle_uninterpreted; - } - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_clip_gradients: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &clip_gradients_))); - set_has_clip_gradients(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(288)) goto parse_iter_size; - break; - } - - // optional int32 iter_size = 36 [default = 1]; - case 36: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_iter_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &iter_size_))); - set_has_iter_size(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void SolverParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional string train_net = 1; - if (has_train_net()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->train_net().data(), this->train_net().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->train_net(), output); - } - - // repeated string test_net = 2; - for (int i = 0; i < this->test_net_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->test_net(i).data(), this->test_net(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::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::VerifyUTF8String( - this->lr_policy().data(), this->lr_policy().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 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::VerifyUTF8String( - this->snapshot_prefix().data(), this->snapshot_prefix().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 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 .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 .caffe.NetParameter train_net_param = 21; - if (has_train_net_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 21, this->train_net_param(), output); - } - - // repeated .caffe.NetParameter test_net_param = 22; - for (int i = 0; i < this->test_net_param_size(); 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::VerifyUTF8String( - this->net().data(), this->net().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 24, this->net(), output); - } - - // optional .caffe.NetParameter net_param = 25; - if (has_net_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 25, this->net_param(), output); - } - - // optional .caffe.NetState train_state = 26; - if (has_train_state()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 26, this->train_state(), output); - } - - // repeated .caffe.NetState test_state = 27; - for (int i = 0; i < this->test_state_size(); 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::VerifyUTF8String( - this->regularization_type().data(), this->regularization_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 29, this->regularization_type(), output); - } - - // optional .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); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* SolverParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional string train_net = 1; - if (has_train_net()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->train_net().data(), this->train_net().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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::VerifyUTF8String( - this->test_net(i).data(), this->test_net(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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::VerifyUTF8String( - this->lr_policy().data(), this->lr_policy().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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::VerifyUTF8String( - this->snapshot_prefix().data(), this->snapshot_prefix().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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 .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 .caffe.NetParameter train_net_param = 21; - if (has_train_net_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 21, this->train_net_param(), target); - } - - // repeated .caffe.NetParameter test_net_param = 22; - for (int i = 0; i < this->test_net_param_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 22, this->test_net_param(i), 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::VerifyUTF8String( - this->net().data(), this->net().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 24, this->net(), target); - } - - // optional .caffe.NetParameter net_param = 25; - if (has_net_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 25, this->net_param(), target); - } - - // optional .caffe.NetState train_state = 26; - if (has_train_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 26, this->train_state(), target); - } - - // repeated .caffe.NetState test_state = 27; - for (int i = 0; i < this->test_state_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 27, this->test_state(i), 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::VerifyUTF8String( - this->regularization_type().data(), this->regularization_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 29, this->regularization_type(), target); - } - - // optional .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); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int SolverParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string net = 24; - if (has_net()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->net()); - } - - // optional .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 .caffe.NetParameter train_net_param = 21; - if (has_train_net_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->train_net_param()); - } - - // optional .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] & (0xffu << (9 % 32))) { - // 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] & (0xffu << (16 % 32))) { - // 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] & (0xffu << (25 % 32))) { - // 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 .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()); - } - - // optional int64 random_seed = 20 [default = -1]; - if (has_random_seed()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->random_seed()); - } - - } - if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) { - // optional .caffe.SolverParameter.SolverType solver_type = 30 [default = SGD]; - if (has_solver_type()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->solver_type()); - } - - // optional float delta = 31 [default = 1e-08]; - if (has_delta()) { - 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; - } - - } - // repeated string test_net = 2; - total_size += 1 * 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 .caffe.NetParameter test_net_param = 22; - total_size += 2 * this->test_net_param_size(); - for (int i = 0; i < this->test_net_param_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->test_net_param(i)); - } - - // repeated .caffe.NetState test_state = 27; - total_size += 2 * this->test_state_size(); - for (int i = 0; i < this->test_state_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->test_state(i)); - } - - // repeated int32 test_iter = 3; - { - int data_size = 0; - for (int i = 0; i < this->test_iter_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int32Size(this->test_iter(i)); - } - total_size += 1 * this->test_iter_size() + data_size; - } - - // repeated int32 stepvalue = 34; - { - int data_size = 0; - for (int i = 0; i < this->stepvalue_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int32Size(this->stepvalue(i)); - } - total_size += 2 * this->stepvalue_size() + data_size; - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SolverParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SolverParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SolverParameter::MergeFrom(const SolverParameter& from) { - GOOGLE_CHECK_NE(&from, this); - test_net_.MergeFrom(from.test_net_); - test_net_param_.MergeFrom(from.test_net_param_); - test_state_.MergeFrom(from.test_state_); - test_iter_.MergeFrom(from.test_iter_); - stepvalue_.MergeFrom(from.stepvalue_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_net()) { - set_net(from.net()); - } - if (from.has_net_param()) { - mutable_net_param()->::caffe::NetParameter::MergeFrom(from.net_param()); - } - if (from.has_train_net()) { - set_train_net(from.train_net()); - } - if (from.has_train_net_param()) { - mutable_train_net_param()->::caffe::NetParameter::MergeFrom(from.train_net_param()); - } - if (from.has_train_state()) { - mutable_train_state()->::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_lr_policy(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_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_snapshot_prefix(from.snapshot_prefix()); - } - if (from.has_snapshot_diff()) { - set_snapshot_diff(from.snapshot_diff()); - } - 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_random_seed()) { - set_random_seed(from.random_seed()); - } - } - if (from._has_bits_[32 / 32] & (0xffu << (32 % 32))) { - if (from.has_solver_type()) { - set_solver_type(from.solver_type()); - } - if (from.has_delta()) { - set_delta(from.delta()); - } - 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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SolverParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SolverParameter::CopyFrom(const SolverParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SolverParameter::IsInitialized() const { - - return true; -} - -void SolverParameter::Swap(SolverParameter* other) { - if (other != this) { - std::swap(net_, other->net_); - std::swap(net_param_, other->net_param_); - std::swap(train_net_, other->train_net_); - test_net_.Swap(&other->test_net_); - std::swap(train_net_param_, other->train_net_param_); - test_net_param_.Swap(&other->test_net_param_); - std::swap(train_state_, other->train_state_); - test_state_.Swap(&other->test_state_); - test_iter_.Swap(&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_); - std::swap(lr_policy_, 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_); - std::swap(regularization_type_, other->regularization_type_); - std::swap(stepsize_, other->stepsize_); - stepvalue_.Swap(&other->stepvalue_); - std::swap(clip_gradients_, other->clip_gradients_); - std::swap(snapshot_, other->snapshot_); - std::swap(snapshot_prefix_, other->snapshot_prefix_); - std::swap(snapshot_diff_, other->snapshot_diff_); - std::swap(solver_mode_, other->solver_mode_); - std::swap(device_id_, other->device_id_); - std::swap(random_seed_, other->random_seed_); - std::swap(solver_type_, other->solver_type_); - std::swap(delta_, other->delta_); - std::swap(debug_info_, other->debug_info_); - std::swap(snapshot_after_train_, other->snapshot_after_train_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_has_bits_[1], other->_has_bits_[1]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int SolverState::kIterFieldNumber; -const int SolverState::kLearnedNetFieldNumber; -const int SolverState::kHistoryFieldNumber; -const int SolverState::kCurrentStepFieldNumber; -#endif // !_MSC_VER - -SolverState::SolverState() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void SolverState::InitAsDefaultInstance() { -} - -SolverState::SolverState(const SolverState& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void SolverState::SharedCtor() { - _cached_size_ = 0; - iter_ = 0; - learned_net_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - current_step_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -SolverState::~SolverState() { - SharedDtor(); -} - -void SolverState::SharedDtor() { - if (learned_net_ != &::google::protobuf::internal::kEmptyString) { - delete learned_net_; - } - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -SolverState* SolverState::default_instance_ = NULL; - -SolverState* SolverState::New() const { - return new SolverState; -} - -void SolverState::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - iter_ = 0; - if (has_learned_net()) { - if (learned_net_ != &::google::protobuf::internal::kEmptyString) { - learned_net_->clear(); - } - } - current_step_ = 0; - } - history_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SolverState::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 iter = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &iter_))); - set_has_iter(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_learned_net; - break; - } - - // optional string learned_net = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_learned_net: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_learned_net())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->learned_net().data(), this->learned_net().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_history; - break; - } - - // repeated .caffe.BlobProto history = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_history: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_history())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_history; - if (input->ExpectTag(32)) goto parse_current_step; - break; - } - - // optional int32 current_step = 4 [default = 0]; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_current_step: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, ¤t_step_))); - set_has_current_step(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void SolverState::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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::VerifyUTF8String( - this->learned_net().data(), this->learned_net().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->learned_net(), output); - } - - // repeated .caffe.BlobProto history = 3; - for (int i = 0; i < this->history_size(); 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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* SolverState::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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::VerifyUTF8String( - this->learned_net().data(), this->learned_net().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->learned_net(), target); - } - - // repeated .caffe.BlobProto history = 3; - for (int i = 0; i < this->history_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->history(i), target); - } - - // optional int32 current_step = 4 [default = 0]; - if (has_current_step()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->current_step(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int SolverState::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 .caffe.BlobProto history = 3; - total_size += 1 * this->history_size(); - for (int i = 0; i < this->history_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->history(i)); - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SolverState::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SolverState* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SolverState::MergeFrom(const SolverState& from) { - GOOGLE_CHECK_NE(&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_learned_net(from.learned_net()); - } - if (from.has_current_step()) { - set_current_step(from.current_step()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SolverState::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SolverState::CopyFrom(const SolverState& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SolverState::IsInitialized() const { - - return true; -} - -void SolverState::Swap(SolverState* other) { - if (other != this) { - std::swap(iter_, other->iter_); - std::swap(learned_net_, other->learned_net_); - history_.Swap(&other->history_); - std::swap(current_step_, other->current_step_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int NetState::kPhaseFieldNumber; -const int NetState::kLevelFieldNumber; -const int NetState::kStageFieldNumber; -#endif // !_MSC_VER - -NetState::NetState() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void NetState::InitAsDefaultInstance() { -} - -NetState::NetState(const NetState& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void NetState::SharedCtor() { - _cached_size_ = 0; - phase_ = 1; - level_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -NetState::~NetState() { - SharedDtor(); -} - -void NetState::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -NetState* NetState::default_instance_ = NULL; - -NetState* NetState::New() const { - return new NetState; -} - -void NetState::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - phase_ = 1; - level_ = 0; - } - stage_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool NetState::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .caffe.Phase phase = 1 [default = TEST]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::Phase_IsValid(value)) { - set_phase(static_cast< ::caffe::Phase >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_level; - break; - } - - // optional int32 level = 2 [default = 0]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_level: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &level_))); - set_has_level(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_stage; - break; - } - - // repeated string stage = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_stage: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_stage())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->stage(this->stage_size() - 1).data(), - this->stage(this->stage_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_stage; - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void NetState::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional .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::VerifyUTF8String( - this->stage(i).data(), this->stage(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 3, this->stage(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* NetState::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional .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::VerifyUTF8String( - this->stage(i).data(), this->stage(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(3, this->stage(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int NetState::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .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 * this->stage_size(); - for (int i = 0; i < this->stage_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->stage(i)); - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void NetState::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const NetState* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void NetState::MergeFrom(const NetState& from) { - GOOGLE_CHECK_NE(&from, this); - stage_.MergeFrom(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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void NetState::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NetState::CopyFrom(const NetState& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NetState::IsInitialized() const { - - return true; -} - -void NetState::Swap(NetState* other) { - if (other != this) { - std::swap(phase_, other->phase_); - std::swap(level_, other->level_); - stage_.Swap(&other->stage_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int NetStateRule::kPhaseFieldNumber; -const int NetStateRule::kMinLevelFieldNumber; -const int NetStateRule::kMaxLevelFieldNumber; -const int NetStateRule::kStageFieldNumber; -const int NetStateRule::kNotStageFieldNumber; -#endif // !_MSC_VER - -NetStateRule::NetStateRule() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void NetStateRule::InitAsDefaultInstance() { -} - -NetStateRule::NetStateRule(const NetStateRule& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void NetStateRule::SharedCtor() { - _cached_size_ = 0; - phase_ = 0; - min_level_ = 0; - max_level_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -NetStateRule::~NetStateRule() { - SharedDtor(); -} - -void NetStateRule::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -NetStateRule* NetStateRule::default_instance_ = NULL; - -NetStateRule* NetStateRule::New() const { - return new NetStateRule; -} - -void NetStateRule::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - phase_ = 0; - min_level_ = 0; - max_level_ = 0; - } - stage_.Clear(); - not_stage_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool NetStateRule::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .caffe.Phase phase = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::Phase_IsValid(value)) { - set_phase(static_cast< ::caffe::Phase >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_min_level; - break; - } - - // optional int32 min_level = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_min_level: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &min_level_))); - set_has_min_level(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_max_level; - break; - } - - // optional int32 max_level = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_max_level: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &max_level_))); - set_has_max_level(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_stage; - break; - } - - // repeated string stage = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_stage: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_stage())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->stage(this->stage_size() - 1).data(), - this->stage(this->stage_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_stage; - if (input->ExpectTag(42)) goto parse_not_stage; - break; - } - - // repeated string not_stage = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_not_stage: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_not_stage())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->not_stage(this->not_stage_size() - 1).data(), - this->not_stage(this->not_stage_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(42)) goto parse_not_stage; - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void NetStateRule::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional .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::VerifyUTF8String( - this->stage(i).data(), this->stage(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::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::VerifyUTF8String( - this->not_stage(i).data(), this->not_stage(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 5, this->not_stage(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* NetStateRule::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional .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::VerifyUTF8String( - this->stage(i).data(), this->stage(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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::VerifyUTF8String( - this->not_stage(i).data(), this->not_stage(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(5, this->not_stage(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int NetStateRule::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .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 * 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 * 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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void NetStateRule::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const NetStateRule* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void NetStateRule::MergeFrom(const NetStateRule& from) { - GOOGLE_CHECK_NE(&from, this); - stage_.MergeFrom(from.stage_); - not_stage_.MergeFrom(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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void NetStateRule::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NetStateRule::CopyFrom(const NetStateRule& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NetStateRule::IsInitialized() const { - - return true; -} - -void NetStateRule::Swap(NetStateRule* other) { - if (other != this) { - std::swap(phase_, other->phase_); - std::swap(min_level_, other->min_level_); - std::swap(max_level_, other->max_level_); - stage_.Swap(&other->stage_); - not_stage_.Swap(&other->not_stage_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* ParamSpec_DimCheckMode_descriptor() { - protobuf_AssignDescriptorsOnce(); - return ParamSpec_DimCheckMode_descriptor_; -} -bool ParamSpec_DimCheckMode_IsValid(int value) { - switch(value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const ParamSpec_DimCheckMode ParamSpec::STRICT; -const ParamSpec_DimCheckMode ParamSpec::PERMISSIVE; -const ParamSpec_DimCheckMode ParamSpec::DimCheckMode_MIN; -const ParamSpec_DimCheckMode ParamSpec::DimCheckMode_MAX; -const int ParamSpec::DimCheckMode_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int ParamSpec::kNameFieldNumber; -const int ParamSpec::kShareModeFieldNumber; -const int ParamSpec::kLrMultFieldNumber; -const int ParamSpec::kDecayMultFieldNumber; -#endif // !_MSC_VER - -ParamSpec::ParamSpec() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void ParamSpec::InitAsDefaultInstance() { -} - -ParamSpec::ParamSpec(const ParamSpec& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void ParamSpec::SharedCtor() { - _cached_size_ = 0; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - share_mode_ = 0; - lr_mult_ = 1; - decay_mult_ = 1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ParamSpec::~ParamSpec() { - SharedDtor(); -} - -void ParamSpec::SharedDtor() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -ParamSpec* ParamSpec::default_instance_ = NULL; - -ParamSpec* ParamSpec::New() const { - return new ParamSpec; -} - -void ParamSpec::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_name()) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - } - share_mode_ = 0; - lr_mult_ = 1; - decay_mult_ = 1; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ParamSpec::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string name = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_share_mode; - break; - } - - // optional .caffe.ParamSpec.DimCheckMode share_mode = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_share_mode: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::ParamSpec_DimCheckMode_IsValid(value)) { - set_share_mode(static_cast< ::caffe::ParamSpec_DimCheckMode >(value)); - } else { - mutable_unknown_fields()->AddVarint(2, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(29)) goto parse_lr_mult; - break; - } - - // optional float lr_mult = 3 [default = 1]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_lr_mult: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &lr_mult_))); - set_has_lr_mult(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(37)) goto parse_decay_mult; - break; - } - - // optional float decay_mult = 4 [default = 1]; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_decay_mult: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &decay_mult_))); - set_has_decay_mult(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void ParamSpec::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->name(), output); - } - - // optional .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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* ParamSpec::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // optional .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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int ParamSpec::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string name = 1; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional .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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ParamSpec::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ParamSpec* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ParamSpec::MergeFrom(const ParamSpec& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_name()) { - set_name(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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ParamSpec::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ParamSpec::CopyFrom(const ParamSpec& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ParamSpec::IsInitialized() const { - - return true; -} - -void ParamSpec::Swap(ParamSpec* other) { - if (other != this) { - std::swap(name_, 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]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -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::kConcatParamFieldNumber; -const int LayerParameter::kContrastiveLossParamFieldNumber; -const int LayerParameter::kConvolutionParamFieldNumber; -const int LayerParameter::kDataParamFieldNumber; -const int LayerParameter::kDropoutParamFieldNumber; -const int LayerParameter::kDummyDataParamFieldNumber; -const int LayerParameter::kEltwiseParamFieldNumber; -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::kLogParamFieldNumber; -const int LayerParameter::kLrnParamFieldNumber; -const int LayerParameter::kMemoryDataParamFieldNumber; -const int LayerParameter::kMvnParamFieldNumber; -const int LayerParameter::kPoolingParamFieldNumber; -const int LayerParameter::kPowerParamFieldNumber; -const int LayerParameter::kPreluParamFieldNumber; -const int LayerParameter::kPythonParamFieldNumber; -const int LayerParameter::kReductionParamFieldNumber; -const int LayerParameter::kReluParamFieldNumber; -const int LayerParameter::kReshapeParamFieldNumber; -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::kWindowDataParamFieldNumber; -#endif // !_MSC_VER - -LayerParameter::LayerParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void LayerParameter::InitAsDefaultInstance() { - transform_param_ = const_cast< ::caffe::TransformationParameter*>(&::caffe::TransformationParameter::default_instance()); - loss_param_ = const_cast< ::caffe::LossParameter*>(&::caffe::LossParameter::default_instance()); - accuracy_param_ = const_cast< ::caffe::AccuracyParameter*>(&::caffe::AccuracyParameter::default_instance()); - argmax_param_ = const_cast< ::caffe::ArgMaxParameter*>(&::caffe::ArgMaxParameter::default_instance()); - concat_param_ = const_cast< ::caffe::ConcatParameter*>(&::caffe::ConcatParameter::default_instance()); - contrastive_loss_param_ = const_cast< ::caffe::ContrastiveLossParameter*>(&::caffe::ContrastiveLossParameter::default_instance()); - convolution_param_ = const_cast< ::caffe::ConvolutionParameter*>(&::caffe::ConvolutionParameter::default_instance()); - data_param_ = const_cast< ::caffe::DataParameter*>(&::caffe::DataParameter::default_instance()); - dropout_param_ = const_cast< ::caffe::DropoutParameter*>(&::caffe::DropoutParameter::default_instance()); - dummy_data_param_ = const_cast< ::caffe::DummyDataParameter*>(&::caffe::DummyDataParameter::default_instance()); - eltwise_param_ = const_cast< ::caffe::EltwiseParameter*>(&::caffe::EltwiseParameter::default_instance()); - exp_param_ = const_cast< ::caffe::ExpParameter*>(&::caffe::ExpParameter::default_instance()); - flatten_param_ = const_cast< ::caffe::FlattenParameter*>(&::caffe::FlattenParameter::default_instance()); - hdf5_data_param_ = const_cast< ::caffe::HDF5DataParameter*>(&::caffe::HDF5DataParameter::default_instance()); - hdf5_output_param_ = const_cast< ::caffe::HDF5OutputParameter*>(&::caffe::HDF5OutputParameter::default_instance()); - hinge_loss_param_ = const_cast< ::caffe::HingeLossParameter*>(&::caffe::HingeLossParameter::default_instance()); - image_data_param_ = const_cast< ::caffe::ImageDataParameter*>(&::caffe::ImageDataParameter::default_instance()); - infogain_loss_param_ = const_cast< ::caffe::InfogainLossParameter*>(&::caffe::InfogainLossParameter::default_instance()); - inner_product_param_ = const_cast< ::caffe::InnerProductParameter*>(&::caffe::InnerProductParameter::default_instance()); - log_param_ = const_cast< ::caffe::LogParameter*>(&::caffe::LogParameter::default_instance()); - lrn_param_ = const_cast< ::caffe::LRNParameter*>(&::caffe::LRNParameter::default_instance()); - memory_data_param_ = const_cast< ::caffe::MemoryDataParameter*>(&::caffe::MemoryDataParameter::default_instance()); - mvn_param_ = const_cast< ::caffe::MVNParameter*>(&::caffe::MVNParameter::default_instance()); - pooling_param_ = const_cast< ::caffe::PoolingParameter*>(&::caffe::PoolingParameter::default_instance()); - power_param_ = const_cast< ::caffe::PowerParameter*>(&::caffe::PowerParameter::default_instance()); - prelu_param_ = const_cast< ::caffe::PReLUParameter*>(&::caffe::PReLUParameter::default_instance()); - python_param_ = const_cast< ::caffe::PythonParameter*>(&::caffe::PythonParameter::default_instance()); - reduction_param_ = const_cast< ::caffe::ReductionParameter*>(&::caffe::ReductionParameter::default_instance()); - relu_param_ = const_cast< ::caffe::ReLUParameter*>(&::caffe::ReLUParameter::default_instance()); - reshape_param_ = const_cast< ::caffe::ReshapeParameter*>(&::caffe::ReshapeParameter::default_instance()); - sigmoid_param_ = const_cast< ::caffe::SigmoidParameter*>(&::caffe::SigmoidParameter::default_instance()); - softmax_param_ = const_cast< ::caffe::SoftmaxParameter*>(&::caffe::SoftmaxParameter::default_instance()); - spp_param_ = const_cast< ::caffe::SPPParameter*>(&::caffe::SPPParameter::default_instance()); - slice_param_ = const_cast< ::caffe::SliceParameter*>(&::caffe::SliceParameter::default_instance()); - tanh_param_ = const_cast< ::caffe::TanHParameter*>(&::caffe::TanHParameter::default_instance()); - threshold_param_ = const_cast< ::caffe::ThresholdParameter*>(&::caffe::ThresholdParameter::default_instance()); - window_data_param_ = const_cast< ::caffe::WindowDataParameter*>(&::caffe::WindowDataParameter::default_instance()); -} - -LayerParameter::LayerParameter(const LayerParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void LayerParameter::SharedCtor() { - _cached_size_ = 0; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - phase_ = 0; - transform_param_ = NULL; - loss_param_ = NULL; - 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; - 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; - log_param_ = NULL; - lrn_param_ = NULL; - memory_data_param_ = NULL; - mvn_param_ = NULL; - pooling_param_ = NULL; - power_param_ = NULL; - prelu_param_ = NULL; - python_param_ = NULL; - reduction_param_ = NULL; - relu_param_ = NULL; - reshape_param_ = NULL; - sigmoid_param_ = NULL; - softmax_param_ = NULL; - spp_param_ = NULL; - slice_param_ = NULL; - tanh_param_ = NULL; - threshold_param_ = NULL; - window_data_param_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -LayerParameter::~LayerParameter() { - SharedDtor(); -} - -void LayerParameter::SharedDtor() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (type_ != &::google::protobuf::internal::kEmptyString) { - delete type_; - } - if (this != default_instance_) { - delete transform_param_; - delete loss_param_; - 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 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 log_param_; - delete lrn_param_; - delete memory_data_param_; - delete mvn_param_; - delete pooling_param_; - delete power_param_; - delete prelu_param_; - delete python_param_; - delete reduction_param_; - delete relu_param_; - delete reshape_param_; - delete sigmoid_param_; - delete softmax_param_; - delete spp_param_; - delete slice_param_; - delete tanh_param_; - delete threshold_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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -LayerParameter* LayerParameter::default_instance_ = NULL; - -LayerParameter* LayerParameter::New() const { - return new LayerParameter; -} - -void LayerParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_name()) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - } - if (has_type()) { - if (type_ != &::google::protobuf::internal::kEmptyString) { - type_->clear(); - } - } - phase_ = 0; - } - if (_has_bits_[11 / 32] & (0xffu << (11 % 32))) { - if (has_transform_param()) { - if (transform_param_ != NULL) transform_param_->::caffe::TransformationParameter::Clear(); - } - if (has_loss_param()) { - if (loss_param_ != NULL) loss_param_->::caffe::LossParameter::Clear(); - } - if (has_accuracy_param()) { - if (accuracy_param_ != NULL) accuracy_param_->::caffe::AccuracyParameter::Clear(); - } - if (has_argmax_param()) { - if (argmax_param_ != NULL) argmax_param_->::caffe::ArgMaxParameter::Clear(); - } - if (has_concat_param()) { - if (concat_param_ != NULL) concat_param_->::caffe::ConcatParameter::Clear(); - } - } - if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { - if (has_contrastive_loss_param()) { - if (contrastive_loss_param_ != NULL) contrastive_loss_param_->::caffe::ContrastiveLossParameter::Clear(); - } - if (has_convolution_param()) { - if (convolution_param_ != NULL) convolution_param_->::caffe::ConvolutionParameter::Clear(); - } - if (has_data_param()) { - if (data_param_ != NULL) data_param_->::caffe::DataParameter::Clear(); - } - if (has_dropout_param()) { - if (dropout_param_ != NULL) dropout_param_->::caffe::DropoutParameter::Clear(); - } - if (has_dummy_data_param()) { - if (dummy_data_param_ != NULL) dummy_data_param_->::caffe::DummyDataParameter::Clear(); - } - if (has_eltwise_param()) { - if (eltwise_param_ != NULL) eltwise_param_->::caffe::EltwiseParameter::Clear(); - } - if (has_exp_param()) { - if (exp_param_ != NULL) exp_param_->::caffe::ExpParameter::Clear(); - } - if (has_flatten_param()) { - if (flatten_param_ != NULL) flatten_param_->::caffe::FlattenParameter::Clear(); - } - } - if (_has_bits_[24 / 32] & (0xffu << (24 % 32))) { - if (has_hdf5_data_param()) { - if (hdf5_data_param_ != NULL) hdf5_data_param_->::caffe::HDF5DataParameter::Clear(); - } - if (has_hdf5_output_param()) { - if (hdf5_output_param_ != NULL) hdf5_output_param_->::caffe::HDF5OutputParameter::Clear(); - } - if (has_hinge_loss_param()) { - if (hinge_loss_param_ != NULL) hinge_loss_param_->::caffe::HingeLossParameter::Clear(); - } - if (has_image_data_param()) { - if (image_data_param_ != NULL) image_data_param_->::caffe::ImageDataParameter::Clear(); - } - if (has_infogain_loss_param()) { - if (infogain_loss_param_ != NULL) infogain_loss_param_->::caffe::InfogainLossParameter::Clear(); - } - if (has_inner_product_param()) { - if (inner_product_param_ != NULL) inner_product_param_->::caffe::InnerProductParameter::Clear(); - } - if (has_log_param()) { - if (log_param_ != NULL) log_param_->::caffe::LogParameter::Clear(); - } - if (has_lrn_param()) { - if (lrn_param_ != NULL) lrn_param_->::caffe::LRNParameter::Clear(); - } - } - if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) { - if (has_memory_data_param()) { - if (memory_data_param_ != NULL) memory_data_param_->::caffe::MemoryDataParameter::Clear(); - } - if (has_mvn_param()) { - if (mvn_param_ != NULL) mvn_param_->::caffe::MVNParameter::Clear(); - } - if (has_pooling_param()) { - if (pooling_param_ != NULL) pooling_param_->::caffe::PoolingParameter::Clear(); - } - if (has_power_param()) { - if (power_param_ != NULL) power_param_->::caffe::PowerParameter::Clear(); - } - if (has_prelu_param()) { - if (prelu_param_ != NULL) prelu_param_->::caffe::PReLUParameter::Clear(); - } - if (has_python_param()) { - if (python_param_ != NULL) python_param_->::caffe::PythonParameter::Clear(); - } - if (has_reduction_param()) { - if (reduction_param_ != NULL) reduction_param_->::caffe::ReductionParameter::Clear(); - } - if (has_relu_param()) { - if (relu_param_ != NULL) relu_param_->::caffe::ReLUParameter::Clear(); - } - } - if (_has_bits_[40 / 32] & (0xffu << (40 % 32))) { - if (has_reshape_param()) { - if (reshape_param_ != NULL) reshape_param_->::caffe::ReshapeParameter::Clear(); - } - if (has_sigmoid_param()) { - if (sigmoid_param_ != NULL) sigmoid_param_->::caffe::SigmoidParameter::Clear(); - } - if (has_softmax_param()) { - if (softmax_param_ != NULL) softmax_param_->::caffe::SoftmaxParameter::Clear(); - } - if (has_spp_param()) { - if (spp_param_ != NULL) spp_param_->::caffe::SPPParameter::Clear(); - } - if (has_slice_param()) { - if (slice_param_ != NULL) slice_param_->::caffe::SliceParameter::Clear(); - } - if (has_tanh_param()) { - if (tanh_param_ != NULL) tanh_param_->::caffe::TanHParameter::Clear(); - } - if (has_threshold_param()) { - if (threshold_param_ != NULL) threshold_param_->::caffe::ThresholdParameter::Clear(); - } - if (has_window_data_param()) { - if (window_data_param_ != NULL) window_data_param_->::caffe::WindowDataParameter::Clear(); - } - } - bottom_.Clear(); - top_.Clear(); - loss_weight_.Clear(); - param_.Clear(); - blobs_.Clear(); - propagate_down_.Clear(); - include_.Clear(); - exclude_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool LayerParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string name = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_type; - break; - } - - // optional string type = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_type: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_type())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_bottom; - break; - } - - // repeated string bottom = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_bottom: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_bottom())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->bottom(this->bottom_size() - 1).data(), - this->bottom(this->bottom_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_bottom; - if (input->ExpectTag(34)) goto parse_top; - break; - } - - // repeated string top = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_top: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_top())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->top(this->top_size() - 1).data(), - this->top(this->top_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_top; - if (input->ExpectTag(45)) goto parse_loss_weight; - break; - } - - // repeated float loss_weight = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_loss_weight()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(45)) goto parse_loss_weight; - if (input->ExpectTag(50)) goto parse_param; - break; - } - - // repeated .caffe.ParamSpec param = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(50)) goto parse_param; - if (input->ExpectTag(58)) goto parse_blobs; - break; - } - - // repeated .caffe.BlobProto blobs = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_blobs: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_blobs())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(58)) goto parse_blobs; - if (input->ExpectTag(66)) goto parse_include; - break; - } - - // repeated .caffe.NetStateRule include = 8; - case 8: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_include: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_include())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(66)) goto parse_include; - if (input->ExpectTag(74)) goto parse_exclude; - break; - } - - // repeated .caffe.NetStateRule exclude = 9; - case 9: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_exclude: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_exclude())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(74)) goto parse_exclude; - if (input->ExpectTag(80)) goto parse_phase; - break; - } - - // optional .caffe.Phase phase = 10; - case 10: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_phase: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::Phase_IsValid(value)) { - set_phase(static_cast< ::caffe::Phase >(value)); - } else { - mutable_unknown_fields()->AddVarint(10, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(88)) goto parse_propagate_down; - break; - } - - // repeated bool propagate_down = 11; - case 11: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, this->mutable_propagate_down()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(88)) goto parse_propagate_down; - if (input->ExpectTag(802)) goto parse_transform_param; - break; - } - - // optional .caffe.TransformationParameter transform_param = 100; - case 100: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_transform_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_transform_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(810)) goto parse_loss_param; - break; - } - - // optional .caffe.LossParameter loss_param = 101; - case 101: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_loss_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_loss_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(818)) goto parse_accuracy_param; - break; - } - - // optional .caffe.AccuracyParameter accuracy_param = 102; - case 102: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_accuracy_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_accuracy_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(826)) goto parse_argmax_param; - break; - } - - // optional .caffe.ArgMaxParameter argmax_param = 103; - case 103: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_argmax_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_argmax_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(834)) goto parse_concat_param; - break; - } - - // optional .caffe.ConcatParameter concat_param = 104; - case 104: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_concat_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_concat_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(842)) goto parse_contrastive_loss_param; - break; - } - - // optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105; - case 105: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_contrastive_loss_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_contrastive_loss_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(850)) goto parse_convolution_param; - break; - } - - // optional .caffe.ConvolutionParameter convolution_param = 106; - case 106: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_convolution_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_convolution_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(858)) goto parse_data_param; - break; - } - - // optional .caffe.DataParameter data_param = 107; - case 107: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_data_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(866)) goto parse_dropout_param; - break; - } - - // optional .caffe.DropoutParameter dropout_param = 108; - case 108: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_dropout_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_dropout_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(874)) goto parse_dummy_data_param; - break; - } - - // optional .caffe.DummyDataParameter dummy_data_param = 109; - case 109: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_dummy_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_dummy_data_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(882)) goto parse_eltwise_param; - break; - } - - // optional .caffe.EltwiseParameter eltwise_param = 110; - case 110: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_eltwise_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_eltwise_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(890)) goto parse_exp_param; - break; - } - - // optional .caffe.ExpParameter exp_param = 111; - case 111: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_exp_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_exp_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(898)) goto parse_hdf5_data_param; - break; - } - - // optional .caffe.HDF5DataParameter hdf5_data_param = 112; - case 112: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_hdf5_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_hdf5_data_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(906)) goto parse_hdf5_output_param; - break; - } - - // optional .caffe.HDF5OutputParameter hdf5_output_param = 113; - case 113: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_hdf5_output_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_hdf5_output_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(914)) goto parse_hinge_loss_param; - break; - } - - // optional .caffe.HingeLossParameter hinge_loss_param = 114; - case 114: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_hinge_loss_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_hinge_loss_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(922)) goto parse_image_data_param; - break; - } - - // optional .caffe.ImageDataParameter image_data_param = 115; - case 115: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_image_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_image_data_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(930)) goto parse_infogain_loss_param; - break; - } - - // optional .caffe.InfogainLossParameter infogain_loss_param = 116; - case 116: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_infogain_loss_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_infogain_loss_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(938)) goto parse_inner_product_param; - break; - } - - // optional .caffe.InnerProductParameter inner_product_param = 117; - case 117: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_inner_product_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_inner_product_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(946)) goto parse_lrn_param; - break; - } - - // optional .caffe.LRNParameter lrn_param = 118; - case 118: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_lrn_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_lrn_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(954)) goto parse_memory_data_param; - break; - } - - // optional .caffe.MemoryDataParameter memory_data_param = 119; - case 119: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_memory_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_memory_data_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(962)) goto parse_mvn_param; - break; - } - - // optional .caffe.MVNParameter mvn_param = 120; - case 120: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_mvn_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_mvn_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(970)) goto parse_pooling_param; - break; - } - - // optional .caffe.PoolingParameter pooling_param = 121; - case 121: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_pooling_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_pooling_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(978)) goto parse_power_param; - break; - } - - // optional .caffe.PowerParameter power_param = 122; - case 122: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_power_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_power_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(986)) goto parse_relu_param; - break; - } - - // optional .caffe.ReLUParameter relu_param = 123; - case 123: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_relu_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_relu_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(994)) goto parse_sigmoid_param; - break; - } - - // optional .caffe.SigmoidParameter sigmoid_param = 124; - case 124: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_sigmoid_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_sigmoid_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(1002)) goto parse_softmax_param; - break; - } - - // optional .caffe.SoftmaxParameter softmax_param = 125; - case 125: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_softmax_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_softmax_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(1010)) goto parse_slice_param; - break; - } - - // optional .caffe.SliceParameter slice_param = 126; - case 126: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_slice_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_slice_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(1018)) goto parse_tanh_param; - break; - } - - // optional .caffe.TanHParameter tanh_param = 127; - case 127: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_tanh_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_tanh_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(1026)) goto parse_threshold_param; - break; - } - - // optional .caffe.ThresholdParameter threshold_param = 128; - case 128: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_threshold_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_threshold_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(1034)) goto parse_window_data_param; - break; - } - - // optional .caffe.WindowDataParameter window_data_param = 129; - case 129: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_window_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_window_data_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(1042)) goto parse_python_param; - break; - } - - // optional .caffe.PythonParameter python_param = 130; - case 130: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_python_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_python_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(1050)) goto parse_prelu_param; - break; - } - - // optional .caffe.PReLUParameter prelu_param = 131; - case 131: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_prelu_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_prelu_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(1058)) goto parse_spp_param; - break; - } - - // optional .caffe.SPPParameter spp_param = 132; - case 132: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_spp_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_spp_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(1066)) goto parse_reshape_param; - break; - } - - // optional .caffe.ReshapeParameter reshape_param = 133; - case 133: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_reshape_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_reshape_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(1074)) goto parse_log_param; - break; - } - - // optional .caffe.LogParameter log_param = 134; - case 134: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_log_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_log_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(1082)) goto parse_flatten_param; - break; - } - - // optional .caffe.FlattenParameter flatten_param = 135; - case 135: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_flatten_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_flatten_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(1090)) goto parse_reduction_param; - break; - } - - // optional .caffe.ReductionParameter reduction_param = 136; - case 136: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_reduction_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_reduction_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void LayerParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->name(), output); - } - - // optional string type = 2; - if (has_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->type(), output); - } - - // repeated string bottom = 3; - for (int i = 0; i < this->bottom_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->bottom(i).data(), this->bottom(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::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::VerifyUTF8String( - this->top(i).data(), this->top(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::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 .caffe.ParamSpec param = 6; - for (int i = 0; i < this->param_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->param(i), output); - } - - // repeated .caffe.BlobProto blobs = 7; - for (int i = 0; i < this->blobs_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->blobs(i), output); - } - - // repeated .caffe.NetStateRule include = 8; - for (int i = 0; i < this->include_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, this->include(i), output); - } - - // repeated .caffe.NetStateRule exclude = 9; - for (int i = 0; i < this->exclude_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, this->exclude(i), output); - } - - // optional .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 .caffe.TransformationParameter transform_param = 100; - if (has_transform_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 100, this->transform_param(), output); - } - - // optional .caffe.LossParameter loss_param = 101; - if (has_loss_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 101, this->loss_param(), output); - } - - // optional .caffe.AccuracyParameter accuracy_param = 102; - if (has_accuracy_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 102, this->accuracy_param(), output); - } - - // optional .caffe.ArgMaxParameter argmax_param = 103; - if (has_argmax_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 103, this->argmax_param(), output); - } - - // optional .caffe.ConcatParameter concat_param = 104; - if (has_concat_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 104, this->concat_param(), output); - } - - // optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105; - if (has_contrastive_loss_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 105, this->contrastive_loss_param(), output); - } - - // optional .caffe.ConvolutionParameter convolution_param = 106; - if (has_convolution_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 106, this->convolution_param(), output); - } - - // optional .caffe.DataParameter data_param = 107; - if (has_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 107, this->data_param(), output); - } - - // optional .caffe.DropoutParameter dropout_param = 108; - if (has_dropout_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 108, this->dropout_param(), output); - } - - // optional .caffe.DummyDataParameter dummy_data_param = 109; - if (has_dummy_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 109, this->dummy_data_param(), output); - } - - // optional .caffe.EltwiseParameter eltwise_param = 110; - if (has_eltwise_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 110, this->eltwise_param(), output); - } - - // optional .caffe.ExpParameter exp_param = 111; - if (has_exp_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 111, this->exp_param(), output); - } - - // optional .caffe.HDF5DataParameter hdf5_data_param = 112; - if (has_hdf5_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 112, this->hdf5_data_param(), output); - } - - // optional .caffe.HDF5OutputParameter hdf5_output_param = 113; - if (has_hdf5_output_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 113, this->hdf5_output_param(), output); - } - - // optional .caffe.HingeLossParameter hinge_loss_param = 114; - if (has_hinge_loss_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 114, this->hinge_loss_param(), output); - } - - // optional .caffe.ImageDataParameter image_data_param = 115; - if (has_image_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 115, this->image_data_param(), output); - } - - // optional .caffe.InfogainLossParameter infogain_loss_param = 116; - if (has_infogain_loss_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 116, this->infogain_loss_param(), output); - } - - // optional .caffe.InnerProductParameter inner_product_param = 117; - if (has_inner_product_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 117, this->inner_product_param(), output); - } - - // optional .caffe.LRNParameter lrn_param = 118; - if (has_lrn_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 118, this->lrn_param(), output); - } - - // optional .caffe.MemoryDataParameter memory_data_param = 119; - if (has_memory_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 119, this->memory_data_param(), output); - } - - // optional .caffe.MVNParameter mvn_param = 120; - if (has_mvn_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 120, this->mvn_param(), output); - } - - // optional .caffe.PoolingParameter pooling_param = 121; - if (has_pooling_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 121, this->pooling_param(), output); - } - - // optional .caffe.PowerParameter power_param = 122; - if (has_power_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 122, this->power_param(), output); - } - - // optional .caffe.ReLUParameter relu_param = 123; - if (has_relu_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 123, this->relu_param(), output); - } - - // optional .caffe.SigmoidParameter sigmoid_param = 124; - if (has_sigmoid_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 124, this->sigmoid_param(), output); - } - - // optional .caffe.SoftmaxParameter softmax_param = 125; - if (has_softmax_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 125, this->softmax_param(), output); - } - - // optional .caffe.SliceParameter slice_param = 126; - if (has_slice_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 126, this->slice_param(), output); - } - - // optional .caffe.TanHParameter tanh_param = 127; - if (has_tanh_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 127, this->tanh_param(), output); - } - - // optional .caffe.ThresholdParameter threshold_param = 128; - if (has_threshold_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 128, this->threshold_param(), output); - } - - // optional .caffe.WindowDataParameter window_data_param = 129; - if (has_window_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 129, this->window_data_param(), output); - } - - // optional .caffe.PythonParameter python_param = 130; - if (has_python_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 130, this->python_param(), output); - } - - // optional .caffe.PReLUParameter prelu_param = 131; - if (has_prelu_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 131, this->prelu_param(), output); - } - - // optional .caffe.SPPParameter spp_param = 132; - if (has_spp_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 132, this->spp_param(), output); - } - - // optional .caffe.ReshapeParameter reshape_param = 133; - if (has_reshape_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 133, this->reshape_param(), output); - } - - // optional .caffe.LogParameter log_param = 134; - if (has_log_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 134, this->log_param(), output); - } - - // optional .caffe.FlattenParameter flatten_param = 135; - if (has_flatten_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 135, this->flatten_param(), output); - } - - // optional .caffe.ReductionParameter reduction_param = 136; - if (has_reduction_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 136, this->reduction_param(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* LayerParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // optional string type = 2; - if (has_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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::VerifyUTF8String( - this->bottom(i).data(), this->bottom(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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::VerifyUTF8String( - this->top(i).data(), this->top(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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 .caffe.ParamSpec param = 6; - for (int i = 0; i < this->param_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->param(i), target); - } - - // repeated .caffe.BlobProto blobs = 7; - for (int i = 0; i < this->blobs_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->blobs(i), target); - } - - // repeated .caffe.NetStateRule include = 8; - for (int i = 0; i < this->include_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 8, this->include(i), target); - } - - // repeated .caffe.NetStateRule exclude = 9; - for (int i = 0; i < this->exclude_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 9, this->exclude(i), target); - } - - // optional .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 .caffe.TransformationParameter transform_param = 100; - if (has_transform_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 100, this->transform_param(), target); - } - - // optional .caffe.LossParameter loss_param = 101; - if (has_loss_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 101, this->loss_param(), target); - } - - // optional .caffe.AccuracyParameter accuracy_param = 102; - if (has_accuracy_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 102, this->accuracy_param(), target); - } - - // optional .caffe.ArgMaxParameter argmax_param = 103; - if (has_argmax_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 103, this->argmax_param(), target); - } - - // optional .caffe.ConcatParameter concat_param = 104; - if (has_concat_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 104, this->concat_param(), target); - } - - // optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105; - if (has_contrastive_loss_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 105, this->contrastive_loss_param(), target); - } - - // optional .caffe.ConvolutionParameter convolution_param = 106; - if (has_convolution_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 106, this->convolution_param(), target); - } - - // optional .caffe.DataParameter data_param = 107; - if (has_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 107, this->data_param(), target); - } - - // optional .caffe.DropoutParameter dropout_param = 108; - if (has_dropout_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 108, this->dropout_param(), target); - } - - // optional .caffe.DummyDataParameter dummy_data_param = 109; - if (has_dummy_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 109, this->dummy_data_param(), target); - } - - // optional .caffe.EltwiseParameter eltwise_param = 110; - if (has_eltwise_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 110, this->eltwise_param(), target); - } - - // optional .caffe.ExpParameter exp_param = 111; - if (has_exp_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 111, this->exp_param(), target); - } - - // optional .caffe.HDF5DataParameter hdf5_data_param = 112; - if (has_hdf5_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 112, this->hdf5_data_param(), target); - } - - // optional .caffe.HDF5OutputParameter hdf5_output_param = 113; - if (has_hdf5_output_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 113, this->hdf5_output_param(), target); - } - - // optional .caffe.HingeLossParameter hinge_loss_param = 114; - if (has_hinge_loss_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 114, this->hinge_loss_param(), target); - } - - // optional .caffe.ImageDataParameter image_data_param = 115; - if (has_image_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 115, this->image_data_param(), target); - } - - // optional .caffe.InfogainLossParameter infogain_loss_param = 116; - if (has_infogain_loss_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 116, this->infogain_loss_param(), target); - } - - // optional .caffe.InnerProductParameter inner_product_param = 117; - if (has_inner_product_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 117, this->inner_product_param(), target); - } - - // optional .caffe.LRNParameter lrn_param = 118; - if (has_lrn_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 118, this->lrn_param(), target); - } - - // optional .caffe.MemoryDataParameter memory_data_param = 119; - if (has_memory_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 119, this->memory_data_param(), target); - } - - // optional .caffe.MVNParameter mvn_param = 120; - if (has_mvn_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 120, this->mvn_param(), target); - } - - // optional .caffe.PoolingParameter pooling_param = 121; - if (has_pooling_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 121, this->pooling_param(), target); - } - - // optional .caffe.PowerParameter power_param = 122; - if (has_power_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 122, this->power_param(), target); - } - - // optional .caffe.ReLUParameter relu_param = 123; - if (has_relu_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 123, this->relu_param(), target); - } - - // optional .caffe.SigmoidParameter sigmoid_param = 124; - if (has_sigmoid_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 124, this->sigmoid_param(), target); - } - - // optional .caffe.SoftmaxParameter softmax_param = 125; - if (has_softmax_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 125, this->softmax_param(), target); - } - - // optional .caffe.SliceParameter slice_param = 126; - if (has_slice_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 126, this->slice_param(), target); - } - - // optional .caffe.TanHParameter tanh_param = 127; - if (has_tanh_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 127, this->tanh_param(), target); - } - - // optional .caffe.ThresholdParameter threshold_param = 128; - if (has_threshold_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 128, this->threshold_param(), target); - } - - // optional .caffe.WindowDataParameter window_data_param = 129; - if (has_window_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 129, this->window_data_param(), target); - } - - // optional .caffe.PythonParameter python_param = 130; - if (has_python_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 130, this->python_param(), target); - } - - // optional .caffe.PReLUParameter prelu_param = 131; - if (has_prelu_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 131, this->prelu_param(), target); - } - - // optional .caffe.SPPParameter spp_param = 132; - if (has_spp_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 132, this->spp_param(), target); - } - - // optional .caffe.ReshapeParameter reshape_param = 133; - if (has_reshape_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 133, this->reshape_param(), target); - } - - // optional .caffe.LogParameter log_param = 134; - if (has_log_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 134, this->log_param(), target); - } - - // optional .caffe.FlattenParameter flatten_param = 135; - if (has_flatten_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 135, this->flatten_param(), target); - } - - // optional .caffe.ReductionParameter reduction_param = 136; - if (has_reduction_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 136, this->reduction_param(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int LayerParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 .caffe.Phase phase = 10; - if (has_phase()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); - } - - } - if (_has_bits_[11 / 32] & (0xffu << (11 % 32))) { - // optional .caffe.TransformationParameter transform_param = 100; - if (has_transform_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->transform_param()); - } - - // optional .caffe.LossParameter loss_param = 101; - if (has_loss_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->loss_param()); - } - - // optional .caffe.AccuracyParameter accuracy_param = 102; - if (has_accuracy_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->accuracy_param()); - } - - // optional .caffe.ArgMaxParameter argmax_param = 103; - if (has_argmax_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->argmax_param()); - } - - // optional .caffe.ConcatParameter concat_param = 104; - if (has_concat_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->concat_param()); - } - - } - if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { - // optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105; - if (has_contrastive_loss_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->contrastive_loss_param()); - } - - // optional .caffe.ConvolutionParameter convolution_param = 106; - if (has_convolution_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->convolution_param()); - } - - // optional .caffe.DataParameter data_param = 107; - if (has_data_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->data_param()); - } - - // optional .caffe.DropoutParameter dropout_param = 108; - if (has_dropout_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->dropout_param()); - } - - // optional .caffe.DummyDataParameter dummy_data_param = 109; - if (has_dummy_data_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->dummy_data_param()); - } - - // optional .caffe.EltwiseParameter eltwise_param = 110; - if (has_eltwise_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->eltwise_param()); - } - - // optional .caffe.ExpParameter exp_param = 111; - if (has_exp_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->exp_param()); - } - - // optional .caffe.FlattenParameter flatten_param = 135; - if (has_flatten_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->flatten_param()); - } - - } - if (_has_bits_[24 / 32] & (0xffu << (24 % 32))) { - // optional .caffe.HDF5DataParameter hdf5_data_param = 112; - if (has_hdf5_data_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->hdf5_data_param()); - } - - // optional .caffe.HDF5OutputParameter hdf5_output_param = 113; - if (has_hdf5_output_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->hdf5_output_param()); - } - - // optional .caffe.HingeLossParameter hinge_loss_param = 114; - if (has_hinge_loss_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->hinge_loss_param()); - } - - // optional .caffe.ImageDataParameter image_data_param = 115; - if (has_image_data_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->image_data_param()); - } - - // optional .caffe.InfogainLossParameter infogain_loss_param = 116; - if (has_infogain_loss_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->infogain_loss_param()); - } - - // optional .caffe.InnerProductParameter inner_product_param = 117; - if (has_inner_product_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->inner_product_param()); - } - - // optional .caffe.LogParameter log_param = 134; - if (has_log_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->log_param()); - } - - // optional .caffe.LRNParameter lrn_param = 118; - if (has_lrn_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->lrn_param()); - } - - } - if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) { - // optional .caffe.MemoryDataParameter memory_data_param = 119; - if (has_memory_data_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->memory_data_param()); - } - - // optional .caffe.MVNParameter mvn_param = 120; - if (has_mvn_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->mvn_param()); - } - - // optional .caffe.PoolingParameter pooling_param = 121; - if (has_pooling_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->pooling_param()); - } - - // optional .caffe.PowerParameter power_param = 122; - if (has_power_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->power_param()); - } - - // optional .caffe.PReLUParameter prelu_param = 131; - if (has_prelu_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->prelu_param()); - } - - // optional .caffe.PythonParameter python_param = 130; - if (has_python_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->python_param()); - } - - // optional .caffe.ReductionParameter reduction_param = 136; - if (has_reduction_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->reduction_param()); - } - - // optional .caffe.ReLUParameter relu_param = 123; - if (has_relu_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->relu_param()); - } - - } - if (_has_bits_[40 / 32] & (0xffu << (40 % 32))) { - // optional .caffe.ReshapeParameter reshape_param = 133; - if (has_reshape_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->reshape_param()); - } - - // optional .caffe.SigmoidParameter sigmoid_param = 124; - if (has_sigmoid_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->sigmoid_param()); - } - - // optional .caffe.SoftmaxParameter softmax_param = 125; - if (has_softmax_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->softmax_param()); - } - - // optional .caffe.SPPParameter spp_param = 132; - if (has_spp_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->spp_param()); - } - - // optional .caffe.SliceParameter slice_param = 126; - if (has_slice_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->slice_param()); - } - - // optional .caffe.TanHParameter tanh_param = 127; - if (has_tanh_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->tanh_param()); - } - - // optional .caffe.ThresholdParameter threshold_param = 128; - if (has_threshold_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->threshold_param()); - } - - // optional .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 * 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 * 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; - { - int data_size = 0; - data_size = 4 * this->loss_weight_size(); - total_size += 1 * this->loss_weight_size() + data_size; - } - - // repeated .caffe.ParamSpec param = 6; - total_size += 1 * this->param_size(); - for (int i = 0; i < this->param_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->param(i)); - } - - // repeated .caffe.BlobProto blobs = 7; - total_size += 1 * this->blobs_size(); - for (int i = 0; i < this->blobs_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->blobs(i)); - } - - // repeated bool propagate_down = 11; - { - int data_size = 0; - data_size = 1 * this->propagate_down_size(); - total_size += 1 * this->propagate_down_size() + data_size; - } - - // repeated .caffe.NetStateRule include = 8; - total_size += 1 * this->include_size(); - for (int i = 0; i < this->include_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->include(i)); - } - - // repeated .caffe.NetStateRule exclude = 9; - total_size += 1 * this->exclude_size(); - for (int i = 0; i < this->exclude_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->exclude(i)); - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void LayerParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const LayerParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void LayerParameter::MergeFrom(const LayerParameter& from) { - GOOGLE_CHECK_NE(&from, this); - bottom_.MergeFrom(from.bottom_); - top_.MergeFrom(from.top_); - loss_weight_.MergeFrom(from.loss_weight_); - param_.MergeFrom(from.param_); - blobs_.MergeFrom(from.blobs_); - propagate_down_.MergeFrom(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_name(from.name()); - } - if (from.has_type()) { - set_type(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()->::caffe::TransformationParameter::MergeFrom(from.transform_param()); - } - if (from.has_loss_param()) { - mutable_loss_param()->::caffe::LossParameter::MergeFrom(from.loss_param()); - } - if (from.has_accuracy_param()) { - mutable_accuracy_param()->::caffe::AccuracyParameter::MergeFrom(from.accuracy_param()); - } - if (from.has_argmax_param()) { - mutable_argmax_param()->::caffe::ArgMaxParameter::MergeFrom(from.argmax_param()); - } - if (from.has_concat_param()) { - mutable_concat_param()->::caffe::ConcatParameter::MergeFrom(from.concat_param()); - } - } - if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) { - if (from.has_contrastive_loss_param()) { - mutable_contrastive_loss_param()->::caffe::ContrastiveLossParameter::MergeFrom(from.contrastive_loss_param()); - } - if (from.has_convolution_param()) { - mutable_convolution_param()->::caffe::ConvolutionParameter::MergeFrom(from.convolution_param()); - } - if (from.has_data_param()) { - mutable_data_param()->::caffe::DataParameter::MergeFrom(from.data_param()); - } - if (from.has_dropout_param()) { - mutable_dropout_param()->::caffe::DropoutParameter::MergeFrom(from.dropout_param()); - } - if (from.has_dummy_data_param()) { - mutable_dummy_data_param()->::caffe::DummyDataParameter::MergeFrom(from.dummy_data_param()); - } - if (from.has_eltwise_param()) { - mutable_eltwise_param()->::caffe::EltwiseParameter::MergeFrom(from.eltwise_param()); - } - if (from.has_exp_param()) { - mutable_exp_param()->::caffe::ExpParameter::MergeFrom(from.exp_param()); - } - if (from.has_flatten_param()) { - mutable_flatten_param()->::caffe::FlattenParameter::MergeFrom(from.flatten_param()); - } - } - if (from._has_bits_[24 / 32] & (0xffu << (24 % 32))) { - if (from.has_hdf5_data_param()) { - mutable_hdf5_data_param()->::caffe::HDF5DataParameter::MergeFrom(from.hdf5_data_param()); - } - if (from.has_hdf5_output_param()) { - mutable_hdf5_output_param()->::caffe::HDF5OutputParameter::MergeFrom(from.hdf5_output_param()); - } - if (from.has_hinge_loss_param()) { - mutable_hinge_loss_param()->::caffe::HingeLossParameter::MergeFrom(from.hinge_loss_param()); - } - if (from.has_image_data_param()) { - mutable_image_data_param()->::caffe::ImageDataParameter::MergeFrom(from.image_data_param()); - } - if (from.has_infogain_loss_param()) { - mutable_infogain_loss_param()->::caffe::InfogainLossParameter::MergeFrom(from.infogain_loss_param()); - } - if (from.has_inner_product_param()) { - mutable_inner_product_param()->::caffe::InnerProductParameter::MergeFrom(from.inner_product_param()); - } - if (from.has_log_param()) { - mutable_log_param()->::caffe::LogParameter::MergeFrom(from.log_param()); - } - if (from.has_lrn_param()) { - mutable_lrn_param()->::caffe::LRNParameter::MergeFrom(from.lrn_param()); - } - } - if (from._has_bits_[32 / 32] & (0xffu << (32 % 32))) { - if (from.has_memory_data_param()) { - mutable_memory_data_param()->::caffe::MemoryDataParameter::MergeFrom(from.memory_data_param()); - } - if (from.has_mvn_param()) { - mutable_mvn_param()->::caffe::MVNParameter::MergeFrom(from.mvn_param()); - } - if (from.has_pooling_param()) { - mutable_pooling_param()->::caffe::PoolingParameter::MergeFrom(from.pooling_param()); - } - if (from.has_power_param()) { - mutable_power_param()->::caffe::PowerParameter::MergeFrom(from.power_param()); - } - if (from.has_prelu_param()) { - mutable_prelu_param()->::caffe::PReLUParameter::MergeFrom(from.prelu_param()); - } - if (from.has_python_param()) { - mutable_python_param()->::caffe::PythonParameter::MergeFrom(from.python_param()); - } - if (from.has_reduction_param()) { - mutable_reduction_param()->::caffe::ReductionParameter::MergeFrom(from.reduction_param()); - } - if (from.has_relu_param()) { - mutable_relu_param()->::caffe::ReLUParameter::MergeFrom(from.relu_param()); - } - } - if (from._has_bits_[40 / 32] & (0xffu << (40 % 32))) { - if (from.has_reshape_param()) { - mutable_reshape_param()->::caffe::ReshapeParameter::MergeFrom(from.reshape_param()); - } - if (from.has_sigmoid_param()) { - mutable_sigmoid_param()->::caffe::SigmoidParameter::MergeFrom(from.sigmoid_param()); - } - if (from.has_softmax_param()) { - mutable_softmax_param()->::caffe::SoftmaxParameter::MergeFrom(from.softmax_param()); - } - if (from.has_spp_param()) { - mutable_spp_param()->::caffe::SPPParameter::MergeFrom(from.spp_param()); - } - if (from.has_slice_param()) { - mutable_slice_param()->::caffe::SliceParameter::MergeFrom(from.slice_param()); - } - if (from.has_tanh_param()) { - mutable_tanh_param()->::caffe::TanHParameter::MergeFrom(from.tanh_param()); - } - if (from.has_threshold_param()) { - mutable_threshold_param()->::caffe::ThresholdParameter::MergeFrom(from.threshold_param()); - } - if (from.has_window_data_param()) { - mutable_window_data_param()->::caffe::WindowDataParameter::MergeFrom(from.window_data_param()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void LayerParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LayerParameter::CopyFrom(const LayerParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LayerParameter::IsInitialized() const { - - return true; -} - -void LayerParameter::Swap(LayerParameter* other) { - if (other != this) { - std::swap(name_, other->name_); - std::swap(type_, other->type_); - bottom_.Swap(&other->bottom_); - top_.Swap(&other->top_); - std::swap(phase_, other->phase_); - loss_weight_.Swap(&other->loss_weight_); - param_.Swap(&other->param_); - blobs_.Swap(&other->blobs_); - propagate_down_.Swap(&other->propagate_down_); - include_.Swap(&other->include_); - exclude_.Swap(&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(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(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(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(pooling_param_, other->pooling_param_); - std::swap(power_param_, other->power_param_); - std::swap(prelu_param_, other->prelu_param_); - std::swap(python_param_, other->python_param_); - std::swap(reduction_param_, other->reduction_param_); - std::swap(relu_param_, other->relu_param_); - std::swap(reshape_param_, other->reshape_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(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]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -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 // !_MSC_VER - -TransformationParameter::TransformationParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void TransformationParameter::InitAsDefaultInstance() { -} - -TransformationParameter::TransformationParameter(const TransformationParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void TransformationParameter::SharedCtor() { - _cached_size_ = 0; - scale_ = 1; - mirror_ = false; - crop_size_ = 0u; - mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - force_color_ = false; - force_gray_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -TransformationParameter::~TransformationParameter() { - SharedDtor(); -} - -void TransformationParameter::SharedDtor() { - if (mean_file_ != &::google::protobuf::internal::kEmptyString) { - delete mean_file_; - } - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -TransformationParameter* TransformationParameter::default_instance_ = NULL; - -TransformationParameter* TransformationParameter::New() const { - return new TransformationParameter; -} - -void TransformationParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - scale_ = 1; - mirror_ = false; - crop_size_ = 0u; - if (has_mean_file()) { - if (mean_file_ != &::google::protobuf::internal::kEmptyString) { - mean_file_->clear(); - } - } - force_color_ = false; - force_gray_ = false; - } - mean_value_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool TransformationParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float scale = 1 [default = 1]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &scale_))); - set_has_scale(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_mirror; - break; - } - - // optional bool mirror = 2 [default = false]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_mirror: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &mirror_))); - set_has_mirror(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_crop_size; - break; - } - - // optional uint32 crop_size = 3 [default = 0]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_crop_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &crop_size_))); - set_has_crop_size(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_mean_file; - break; - } - - // optional string mean_file = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_mean_file: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_mean_file())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(45)) goto parse_mean_value; - break; - } - - // repeated float mean_value = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_mean_value()))); - } else { - goto handle_uninterpreted; - } - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_force_color: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &force_color_))); - set_has_force_color(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(56)) goto parse_force_gray; - break; - } - - // optional bool force_gray = 7 [default = false]; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_force_gray: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &force_gray_))); - set_has_force_gray(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void TransformationParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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::VerifyUTF8String( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* TransformationParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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::VerifyUTF8String( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int TransformationParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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; - { - int data_size = 0; - data_size = 4 * this->mean_value_size(); - total_size += 1 * this->mean_value_size() + data_size; - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void TransformationParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const TransformationParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void TransformationParameter::MergeFrom(const TransformationParameter& from) { - GOOGLE_CHECK_NE(&from, this); - mean_value_.MergeFrom(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_mean_file(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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void TransformationParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TransformationParameter::CopyFrom(const TransformationParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TransformationParameter::IsInitialized() const { - - return true; -} - -void TransformationParameter::Swap(TransformationParameter* other) { - if (other != this) { - std::swap(scale_, other->scale_); - std::swap(mirror_, other->mirror_); - std::swap(crop_size_, other->crop_size_); - std::swap(mean_file_, other->mean_file_); - mean_value_.Swap(&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]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int LossParameter::kIgnoreLabelFieldNumber; -const int LossParameter::kNormalizeFieldNumber; -#endif // !_MSC_VER - -LossParameter::LossParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void LossParameter::InitAsDefaultInstance() { -} - -LossParameter::LossParameter(const LossParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void LossParameter::SharedCtor() { - _cached_size_ = 0; - ignore_label_ = 0; - normalize_ = true; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -LossParameter::~LossParameter() { - SharedDtor(); -} - -void LossParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -LossParameter* LossParameter::default_instance_ = NULL; - -LossParameter* LossParameter::New() const { - return new LossParameter; -} - -void LossParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - ignore_label_ = 0; - normalize_ = true; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool LossParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 ignore_label = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &ignore_label_))); - set_has_ignore_label(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_normalize; - break; - } - - // optional bool normalize = 2 [default = true]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_normalize: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &normalize_))); - set_has_normalize(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void LossParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional int32 ignore_label = 1; - if (has_ignore_label()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->ignore_label(), output); - } - - // optional bool normalize = 2 [default = true]; - if (has_normalize()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->normalize(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* LossParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional int32 ignore_label = 1; - if (has_ignore_label()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->ignore_label(), target); - } - - // optional bool normalize = 2 [default = true]; - if (has_normalize()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->normalize(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int LossParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional int32 ignore_label = 1; - if (has_ignore_label()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->ignore_label()); - } - - // optional bool normalize = 2 [default = true]; - if (has_normalize()) { - total_size += 1 + 1; - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void LossParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const LossParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void LossParameter::MergeFrom(const LossParameter& from) { - GOOGLE_CHECK_NE(&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_normalize()) { - set_normalize(from.normalize()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void LossParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LossParameter::CopyFrom(const LossParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LossParameter::IsInitialized() const { - - return true; -} - -void LossParameter::Swap(LossParameter* other) { - if (other != this) { - std::swap(ignore_label_, other->ignore_label_); - std::swap(normalize_, other->normalize_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int AccuracyParameter::kTopKFieldNumber; -const int AccuracyParameter::kAxisFieldNumber; -const int AccuracyParameter::kIgnoreLabelFieldNumber; -#endif // !_MSC_VER - -AccuracyParameter::AccuracyParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AccuracyParameter::InitAsDefaultInstance() { -} - -AccuracyParameter::AccuracyParameter(const AccuracyParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AccuracyParameter::SharedCtor() { - _cached_size_ = 0; - top_k_ = 1u; - axis_ = 1; - ignore_label_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AccuracyParameter::~AccuracyParameter() { - SharedDtor(); -} - -void AccuracyParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -AccuracyParameter* AccuracyParameter::default_instance_ = NULL; - -AccuracyParameter* AccuracyParameter::New() const { - return new AccuracyParameter; -} - -void AccuracyParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - top_k_ = 1u; - axis_ = 1; - ignore_label_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AccuracyParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 top_k = 1 [default = 1]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &top_k_))); - set_has_top_k(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_axis; - break; - } - - // optional int32 axis = 2 [default = 1]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_axis: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - set_has_axis(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_ignore_label; - break; - } - - // optional int32 ignore_label = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_ignore_label: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &ignore_label_))); - set_has_ignore_label(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void AccuracyParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AccuracyParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AccuracyParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AccuracyParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AccuracyParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AccuracyParameter::MergeFrom(const AccuracyParameter& from) { - GOOGLE_CHECK_NE(&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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AccuracyParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AccuracyParameter::CopyFrom(const AccuracyParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AccuracyParameter::IsInitialized() const { - - return true; -} - -void AccuracyParameter::Swap(AccuracyParameter* other) { - if (other != this) { - 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]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int ArgMaxParameter::kOutMaxValFieldNumber; -const int ArgMaxParameter::kTopKFieldNumber; -#endif // !_MSC_VER - -ArgMaxParameter::ArgMaxParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void ArgMaxParameter::InitAsDefaultInstance() { -} - -ArgMaxParameter::ArgMaxParameter(const ArgMaxParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void ArgMaxParameter::SharedCtor() { - _cached_size_ = 0; - out_max_val_ = false; - top_k_ = 1u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ArgMaxParameter::~ArgMaxParameter() { - SharedDtor(); -} - -void ArgMaxParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -ArgMaxParameter* ArgMaxParameter::default_instance_ = NULL; - -ArgMaxParameter* ArgMaxParameter::New() const { - return new ArgMaxParameter; -} - -void ArgMaxParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - out_max_val_ = false; - top_k_ = 1u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ArgMaxParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional bool out_max_val = 1 [default = false]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &out_max_val_))); - set_has_out_max_val(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_top_k; - break; - } - - // optional uint32 top_k = 2 [default = 1]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_top_k: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &top_k_))); - set_has_top_k(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void ArgMaxParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* ArgMaxParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int ArgMaxParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ArgMaxParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ArgMaxParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ArgMaxParameter::MergeFrom(const ArgMaxParameter& from) { - GOOGLE_CHECK_NE(&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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ArgMaxParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ArgMaxParameter::CopyFrom(const ArgMaxParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ArgMaxParameter::IsInitialized() const { - - return true; -} - -void ArgMaxParameter::Swap(ArgMaxParameter* other) { - if (other != this) { - std::swap(out_max_val_, other->out_max_val_); - std::swap(top_k_, other->top_k_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int ConcatParameter::kAxisFieldNumber; -const int ConcatParameter::kConcatDimFieldNumber; -#endif // !_MSC_VER - -ConcatParameter::ConcatParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void ConcatParameter::InitAsDefaultInstance() { -} - -ConcatParameter::ConcatParameter(const ConcatParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void ConcatParameter::SharedCtor() { - _cached_size_ = 0; - axis_ = 1; - concat_dim_ = 1u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ConcatParameter::~ConcatParameter() { - SharedDtor(); -} - -void ConcatParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -ConcatParameter* ConcatParameter::default_instance_ = NULL; - -ConcatParameter* ConcatParameter::New() const { - return new ConcatParameter; -} - -void ConcatParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - axis_ = 1; - concat_dim_ = 1u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ConcatParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 concat_dim = 1 [default = 1]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &concat_dim_))); - set_has_concat_dim(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_axis; - break; - } - - // optional int32 axis = 2 [default = 1]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_axis: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - set_has_axis(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void ConcatParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* ConcatParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int ConcatParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ConcatParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ConcatParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ConcatParameter::MergeFrom(const ConcatParameter& from) { - GOOGLE_CHECK_NE(&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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ConcatParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ConcatParameter::CopyFrom(const ConcatParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ConcatParameter::IsInitialized() const { - - return true; -} - -void ConcatParameter::Swap(ConcatParameter* other) { - if (other != this) { - std::swap(axis_, other->axis_); - std::swap(concat_dim_, other->concat_dim_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int ContrastiveLossParameter::kMarginFieldNumber; -const int ContrastiveLossParameter::kLegacyVersionFieldNumber; -#endif // !_MSC_VER - -ContrastiveLossParameter::ContrastiveLossParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void ContrastiveLossParameter::InitAsDefaultInstance() { -} - -ContrastiveLossParameter::ContrastiveLossParameter(const ContrastiveLossParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void ContrastiveLossParameter::SharedCtor() { - _cached_size_ = 0; - margin_ = 1; - legacy_version_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ContrastiveLossParameter::~ContrastiveLossParameter() { - SharedDtor(); -} - -void ContrastiveLossParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -ContrastiveLossParameter* ContrastiveLossParameter::default_instance_ = NULL; - -ContrastiveLossParameter* ContrastiveLossParameter::New() const { - return new ContrastiveLossParameter; -} - -void ContrastiveLossParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - margin_ = 1; - legacy_version_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ContrastiveLossParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float margin = 1 [default = 1]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &margin_))); - set_has_margin(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_legacy_version; - break; - } - - // optional bool legacy_version = 2 [default = false]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_legacy_version: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &legacy_version_))); - set_has_legacy_version(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void ContrastiveLossParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* ContrastiveLossParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int ContrastiveLossParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ContrastiveLossParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ContrastiveLossParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ContrastiveLossParameter::MergeFrom(const ContrastiveLossParameter& from) { - GOOGLE_CHECK_NE(&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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ContrastiveLossParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ContrastiveLossParameter::CopyFrom(const ContrastiveLossParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ContrastiveLossParameter::IsInitialized() const { - - return true; -} - -void ContrastiveLossParameter::Swap(ContrastiveLossParameter* other) { - if (other != this) { - std::swap(margin_, other->margin_); - std::swap(legacy_version_, other->legacy_version_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* ConvolutionParameter_Engine_descriptor() { - protobuf_AssignDescriptorsOnce(); - return ConvolutionParameter_Engine_descriptor_; -} -bool ConvolutionParameter_Engine_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const ConvolutionParameter_Engine ConvolutionParameter::DEFAULT; -const ConvolutionParameter_Engine ConvolutionParameter::CAFFE; -const ConvolutionParameter_Engine ConvolutionParameter::CUDNN; -const ConvolutionParameter_Engine ConvolutionParameter::Engine_MIN; -const ConvolutionParameter_Engine ConvolutionParameter::Engine_MAX; -const int ConvolutionParameter::Engine_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int ConvolutionParameter::kNumOutputFieldNumber; -const int ConvolutionParameter::kBiasTermFieldNumber; -const int ConvolutionParameter::kPadFieldNumber; -const int ConvolutionParameter::kPadHFieldNumber; -const int ConvolutionParameter::kPadWFieldNumber; -const int ConvolutionParameter::kKernelSizeFieldNumber; -const int ConvolutionParameter::kKernelHFieldNumber; -const int ConvolutionParameter::kKernelWFieldNumber; -const int ConvolutionParameter::kGroupFieldNumber; -const int ConvolutionParameter::kStrideFieldNumber; -const int ConvolutionParameter::kStrideHFieldNumber; -const int ConvolutionParameter::kStrideWFieldNumber; -const int ConvolutionParameter::kWeightFillerFieldNumber; -const int ConvolutionParameter::kBiasFillerFieldNumber; -const int ConvolutionParameter::kEngineFieldNumber; -#endif // !_MSC_VER - -ConvolutionParameter::ConvolutionParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void ConvolutionParameter::InitAsDefaultInstance() { - weight_filler_ = const_cast< ::caffe::FillerParameter*>(&::caffe::FillerParameter::default_instance()); - bias_filler_ = const_cast< ::caffe::FillerParameter*>(&::caffe::FillerParameter::default_instance()); -} - -ConvolutionParameter::ConvolutionParameter(const ConvolutionParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void ConvolutionParameter::SharedCtor() { - _cached_size_ = 0; - num_output_ = 0u; - bias_term_ = true; - pad_ = 0u; - pad_h_ = 0u; - pad_w_ = 0u; - kernel_size_ = 0u; - kernel_h_ = 0u; - kernel_w_ = 0u; - group_ = 1u; - stride_ = 1u; - stride_h_ = 0u; - stride_w_ = 0u; - weight_filler_ = NULL; - bias_filler_ = NULL; - engine_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ConvolutionParameter::~ConvolutionParameter() { - SharedDtor(); -} - -void ConvolutionParameter::SharedDtor() { - if (this != default_instance_) { - 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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -ConvolutionParameter* ConvolutionParameter::default_instance_ = NULL; - -ConvolutionParameter* ConvolutionParameter::New() const { - return new ConvolutionParameter; -} - -void ConvolutionParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - num_output_ = 0u; - bias_term_ = true; - pad_ = 0u; - pad_h_ = 0u; - pad_w_ = 0u; - kernel_size_ = 0u; - kernel_h_ = 0u; - kernel_w_ = 0u; - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - group_ = 1u; - stride_ = 1u; - stride_h_ = 0u; - stride_w_ = 0u; - if (has_weight_filler()) { - if (weight_filler_ != NULL) weight_filler_->::caffe::FillerParameter::Clear(); - } - if (has_bias_filler()) { - if (bias_filler_ != NULL) bias_filler_->::caffe::FillerParameter::Clear(); - } - engine_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ConvolutionParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 num_output = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &num_output_))); - set_has_num_output(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_bias_term; - break; - } - - // optional bool bias_term = 2 [default = true]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_bias_term: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &bias_term_))); - set_has_bias_term(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_pad; - break; - } - - // optional uint32 pad = 3 [default = 0]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_pad: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &pad_))); - set_has_pad(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_kernel_size; - break; - } - - // optional uint32 kernel_size = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_kernel_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &kernel_size_))); - set_has_kernel_size(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_group; - break; - } - - // optional uint32 group = 5 [default = 1]; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_group: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &group_))); - set_has_group(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_stride; - break; - } - - // optional uint32 stride = 6 [default = 1]; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_stride: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &stride_))); - set_has_stride(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(58)) goto parse_weight_filler; - break; - } - - // optional .caffe.FillerParameter weight_filler = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_weight_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_weight_filler())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(66)) goto parse_bias_filler; - break; - } - - // optional .caffe.FillerParameter bias_filler = 8; - case 8: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_bias_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_bias_filler())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(72)) goto parse_pad_h; - break; - } - - // optional uint32 pad_h = 9 [default = 0]; - case 9: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_pad_h: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &pad_h_))); - set_has_pad_h(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(80)) goto parse_pad_w; - break; - } - - // optional uint32 pad_w = 10 [default = 0]; - case 10: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_pad_w: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &pad_w_))); - set_has_pad_w(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(88)) goto parse_kernel_h; - break; - } - - // optional uint32 kernel_h = 11; - case 11: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_kernel_h: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &kernel_h_))); - set_has_kernel_h(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(96)) goto parse_kernel_w; - break; - } - - // optional uint32 kernel_w = 12; - case 12: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_kernel_w: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &kernel_w_))); - set_has_kernel_w(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(104)) goto parse_stride_h; - break; - } - - // optional uint32 stride_h = 13; - case 13: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_stride_h: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &stride_h_))); - set_has_stride_h(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(112)) goto parse_stride_w; - break; - } - - // optional uint32 stride_w = 14; - case 14: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_stride_w: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &stride_w_))); - set_has_stride_w(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(120)) goto parse_engine; - break; - } - - // optional .caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; - case 15: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_engine: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::ConvolutionParameter_Engine_IsValid(value)) { - set_engine(static_cast< ::caffe::ConvolutionParameter_Engine >(value)); - } else { - mutable_unknown_fields()->AddVarint(15, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void ConvolutionParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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 uint32 pad = 3 [default = 0]; - if (has_pad()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->pad(), output); - } - - // optional uint32 kernel_size = 4; - if (has_kernel_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->kernel_size(), output); - } - - // optional uint32 group = 5 [default = 1]; - if (has_group()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->group(), output); - } - - // optional uint32 stride = 6 [default = 1]; - if (has_stride()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->stride(), output); - } - - // optional .caffe.FillerParameter weight_filler = 7; - if (has_weight_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->weight_filler(), output); - } - - // optional .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 .caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; - if (has_engine()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 15, this->engine(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* ConvolutionParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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 uint32 pad = 3 [default = 0]; - if (has_pad()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->pad(), target); - } - - // optional uint32 kernel_size = 4; - if (has_kernel_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->kernel_size(), target); - } - - // optional uint32 group = 5 [default = 1]; - if (has_group()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->group(), target); - } - - // optional uint32 stride = 6 [default = 1]; - if (has_stride()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->stride(), target); - } - - // optional .caffe.FillerParameter weight_filler = 7; - if (has_weight_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->weight_filler(), target); - } - - // optional .caffe.FillerParameter bias_filler = 8; - if (has_bias_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 8, this->bias_filler(), 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 .caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; - if (has_engine()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 15, this->engine(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int ConvolutionParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 = 3 [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 = 4; - if (has_kernel_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->kernel_size()); - } - - // 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()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional uint32 group = 5 [default = 1]; - if (has_group()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->group()); - } - - // optional uint32 stride = 6 [default = 1]; - if (has_stride()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->stride()); - } - - // 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 .caffe.FillerParameter weight_filler = 7; - if (has_weight_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->weight_filler()); - } - - // optional .caffe.FillerParameter bias_filler = 8; - if (has_bias_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->bias_filler()); - } - - // optional .caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; - if (has_engine()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ConvolutionParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ConvolutionParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ConvolutionParameter::MergeFrom(const ConvolutionParameter& from) { - GOOGLE_CHECK_NE(&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_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_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_stride_h()) { - set_stride_h(from.stride_h()); - } - if (from.has_stride_w()) { - set_stride_w(from.stride_w()); - } - if (from.has_weight_filler()) { - mutable_weight_filler()->::caffe::FillerParameter::MergeFrom(from.weight_filler()); - } - if (from.has_bias_filler()) { - mutable_bias_filler()->::caffe::FillerParameter::MergeFrom(from.bias_filler()); - } - if (from.has_engine()) { - set_engine(from.engine()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ConvolutionParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ConvolutionParameter::CopyFrom(const ConvolutionParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ConvolutionParameter::IsInitialized() const { - - return true; -} - -void ConvolutionParameter::Swap(ConvolutionParameter* other) { - if (other != this) { - std::swap(num_output_, other->num_output_); - std::swap(bias_term_, other->bias_term_); - 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(group_, other->group_); - std::swap(stride_, other->stride_); - std::swap(stride_h_, other->stride_h_); - std::swap(stride_w_, other->stride_w_); - std::swap(weight_filler_, other->weight_filler_); - std::swap(bias_filler_, other->bias_filler_); - std::swap(engine_, other->engine_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* DataParameter_DB_descriptor() { - protobuf_AssignDescriptorsOnce(); - return DataParameter_DB_descriptor_; -} -bool DataParameter_DB_IsValid(int value) { - switch(value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const DataParameter_DB DataParameter::LEVELDB; -const DataParameter_DB DataParameter::LMDB; -const DataParameter_DB DataParameter::DB_MIN; -const DataParameter_DB DataParameter::DB_MAX; -const int DataParameter::DB_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -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; -#endif // !_MSC_VER - -DataParameter::DataParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void DataParameter::InitAsDefaultInstance() { -} - -DataParameter::DataParameter(const DataParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void DataParameter::SharedCtor() { - _cached_size_ = 0; - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - batch_size_ = 0u; - rand_skip_ = 0u; - backend_ = 0; - scale_ = 1; - mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - crop_size_ = 0u; - mirror_ = false; - force_encoded_color_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -DataParameter::~DataParameter() { - SharedDtor(); -} - -void DataParameter::SharedDtor() { - if (source_ != &::google::protobuf::internal::kEmptyString) { - delete source_; - } - if (mean_file_ != &::google::protobuf::internal::kEmptyString) { - delete mean_file_; - } - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -DataParameter* DataParameter::default_instance_ = NULL; - -DataParameter* DataParameter::New() const { - return new DataParameter; -} - -void DataParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_source()) { - if (source_ != &::google::protobuf::internal::kEmptyString) { - source_->clear(); - } - } - batch_size_ = 0u; - rand_skip_ = 0u; - backend_ = 0; - scale_ = 1; - if (has_mean_file()) { - if (mean_file_ != &::google::protobuf::internal::kEmptyString) { - mean_file_->clear(); - } - } - crop_size_ = 0u; - mirror_ = false; - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - force_encoded_color_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool DataParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string source = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_source())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(21)) goto parse_scale; - break; - } - - // optional float scale = 2 [default = 1]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_scale: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &scale_))); - set_has_scale(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_mean_file; - break; - } - - // optional string mean_file = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_mean_file: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_mean_file())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_batch_size; - break; - } - - // optional uint32 batch_size = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_batch_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &batch_size_))); - set_has_batch_size(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_crop_size; - break; - } - - // optional uint32 crop_size = 5 [default = 0]; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_crop_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &crop_size_))); - set_has_crop_size(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_mirror; - break; - } - - // optional bool mirror = 6 [default = false]; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_mirror: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &mirror_))); - set_has_mirror(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(56)) goto parse_rand_skip; - break; - } - - // optional uint32 rand_skip = 7 [default = 0]; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_rand_skip: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &rand_skip_))); - set_has_rand_skip(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(64)) goto parse_backend; - break; - } - - // optional .caffe.DataParameter.DB backend = 8 [default = LEVELDB]; - case 8: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_backend: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::DataParameter_DB_IsValid(value)) { - set_backend(static_cast< ::caffe::DataParameter_DB >(value)); - } else { - mutable_unknown_fields()->AddVarint(8, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(72)) goto parse_force_encoded_color; - break; - } - - // optional bool force_encoded_color = 9 [default = false]; - case 9: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_force_encoded_color: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &force_encoded_color_))); - set_has_force_encoded_color(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void DataParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 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::VerifyUTF8String( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 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 .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); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* DataParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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::VerifyUTF8String( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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 .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); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int DataParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 .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] & (0xffu << (8 % 32))) { - // optional bool force_encoded_color = 9 [default = false]; - if (has_force_encoded_color()) { - total_size += 1 + 1; - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void DataParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const DataParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void DataParameter::MergeFrom(const DataParameter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_source()) { - set_source(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_mean_file(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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void DataParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DataParameter::CopyFrom(const DataParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DataParameter::IsInitialized() const { - - return true; -} - -void DataParameter::Swap(DataParameter* other) { - if (other != this) { - std::swap(source_, 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_); - std::swap(mean_file_, 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(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int DropoutParameter::kDropoutRatioFieldNumber; -#endif // !_MSC_VER - -DropoutParameter::DropoutParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void DropoutParameter::InitAsDefaultInstance() { -} - -DropoutParameter::DropoutParameter(const DropoutParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void DropoutParameter::SharedCtor() { - _cached_size_ = 0; - dropout_ratio_ = 0.5f; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -DropoutParameter::~DropoutParameter() { - SharedDtor(); -} - -void DropoutParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -DropoutParameter* DropoutParameter::default_instance_ = NULL; - -DropoutParameter* DropoutParameter::New() const { - return new DropoutParameter; -} - -void DropoutParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - dropout_ratio_ = 0.5f; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool DropoutParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float dropout_ratio = 1 [default = 0.5]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &dropout_ratio_))); - set_has_dropout_ratio(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void DropoutParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional float dropout_ratio = 1 [default = 0.5]; - if (has_dropout_ratio()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->dropout_ratio(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* DropoutParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional float dropout_ratio = 1 [default = 0.5]; - if (has_dropout_ratio()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->dropout_ratio(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int DropoutParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional float dropout_ratio = 1 [default = 0.5]; - if (has_dropout_ratio()) { - total_size += 1 + 4; - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void DropoutParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const DropoutParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void DropoutParameter::MergeFrom(const DropoutParameter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_dropout_ratio()) { - set_dropout_ratio(from.dropout_ratio()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void DropoutParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DropoutParameter::CopyFrom(const DropoutParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DropoutParameter::IsInitialized() const { - - return true; -} - -void DropoutParameter::Swap(DropoutParameter* other) { - if (other != this) { - std::swap(dropout_ratio_, other->dropout_ratio_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -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 // !_MSC_VER - -DummyDataParameter::DummyDataParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void DummyDataParameter::InitAsDefaultInstance() { -} - -DummyDataParameter::DummyDataParameter(const DummyDataParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void DummyDataParameter::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -DummyDataParameter::~DummyDataParameter() { - SharedDtor(); -} - -void DummyDataParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -DummyDataParameter* DummyDataParameter::default_instance_ = NULL; - -DummyDataParameter* DummyDataParameter::New() const { - return new DummyDataParameter; -} - -void DummyDataParameter::Clear() { - data_filler_.Clear(); - shape_.Clear(); - num_.Clear(); - channels_.Clear(); - height_.Clear(); - width_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool DummyDataParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .caffe.FillerParameter data_filler = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_data_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_data_filler())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(10)) goto parse_data_filler; - if (input->ExpectTag(16)) goto parse_num; - break; - } - - // repeated uint32 num = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_num()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_num; - if (input->ExpectTag(24)) goto parse_channels; - break; - } - - // repeated uint32 channels = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_channels()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_channels; - if (input->ExpectTag(32)) goto parse_height; - break; - } - - // repeated uint32 height = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_height()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_height; - if (input->ExpectTag(40)) goto parse_width; - break; - } - - // repeated uint32 width = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_width()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_width; - if (input->ExpectTag(50)) goto parse_shape; - break; - } - - // repeated .caffe.BlobShape shape = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_shape: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_shape())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(50)) goto parse_shape; - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void DummyDataParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // repeated .caffe.FillerParameter data_filler = 1; - for (int i = 0; i < this->data_filler_size(); 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 .caffe.BlobShape shape = 6; - for (int i = 0; i < this->shape_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->shape(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* DummyDataParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // repeated .caffe.FillerParameter data_filler = 1; - for (int i = 0; i < this->data_filler_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->data_filler(i), 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 .caffe.BlobShape shape = 6; - for (int i = 0; i < this->shape_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->shape(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int DummyDataParameter::ByteSize() const { - int total_size = 0; - - // repeated .caffe.FillerParameter data_filler = 1; - total_size += 1 * this->data_filler_size(); - for (int i = 0; i < this->data_filler_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->data_filler(i)); - } - - // repeated .caffe.BlobShape shape = 6; - total_size += 1 * this->shape_size(); - for (int i = 0; i < this->shape_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->shape(i)); - } - - // repeated uint32 num = 2; - { - int data_size = 0; - for (int i = 0; i < this->num_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->num(i)); - } - total_size += 1 * this->num_size() + data_size; - } - - // repeated uint32 channels = 3; - { - int data_size = 0; - for (int i = 0; i < this->channels_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->channels(i)); - } - total_size += 1 * this->channels_size() + data_size; - } - - // repeated uint32 height = 4; - { - int data_size = 0; - for (int i = 0; i < this->height_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->height(i)); - } - total_size += 1 * this->height_size() + data_size; - } - - // repeated uint32 width = 5; - { - int data_size = 0; - for (int i = 0; i < this->width_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->width(i)); - } - total_size += 1 * this->width_size() + data_size; - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void DummyDataParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const DummyDataParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void DummyDataParameter::MergeFrom(const DummyDataParameter& from) { - GOOGLE_CHECK_NE(&from, this); - data_filler_.MergeFrom(from.data_filler_); - shape_.MergeFrom(from.shape_); - num_.MergeFrom(from.num_); - channels_.MergeFrom(from.channels_); - height_.MergeFrom(from.height_); - width_.MergeFrom(from.width_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void DummyDataParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DummyDataParameter::CopyFrom(const DummyDataParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DummyDataParameter::IsInitialized() const { - - return true; -} - -void DummyDataParameter::Swap(DummyDataParameter* other) { - if (other != this) { - data_filler_.Swap(&other->data_filler_); - shape_.Swap(&other->shape_); - num_.Swap(&other->num_); - channels_.Swap(&other->channels_); - height_.Swap(&other->height_); - width_.Swap(&other->width_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* EltwiseParameter_EltwiseOp_descriptor() { - protobuf_AssignDescriptorsOnce(); - return EltwiseParameter_EltwiseOp_descriptor_; -} -bool EltwiseParameter_EltwiseOp_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const EltwiseParameter_EltwiseOp EltwiseParameter::PROD; -const EltwiseParameter_EltwiseOp EltwiseParameter::SUM; -const EltwiseParameter_EltwiseOp EltwiseParameter::MAX; -const EltwiseParameter_EltwiseOp EltwiseParameter::EltwiseOp_MIN; -const EltwiseParameter_EltwiseOp EltwiseParameter::EltwiseOp_MAX; -const int EltwiseParameter::EltwiseOp_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int EltwiseParameter::kOperationFieldNumber; -const int EltwiseParameter::kCoeffFieldNumber; -const int EltwiseParameter::kStableProdGradFieldNumber; -#endif // !_MSC_VER - -EltwiseParameter::EltwiseParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void EltwiseParameter::InitAsDefaultInstance() { -} - -EltwiseParameter::EltwiseParameter(const EltwiseParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void EltwiseParameter::SharedCtor() { - _cached_size_ = 0; - operation_ = 1; - stable_prod_grad_ = true; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -EltwiseParameter::~EltwiseParameter() { - SharedDtor(); -} - -void EltwiseParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -EltwiseParameter* EltwiseParameter::default_instance_ = NULL; - -EltwiseParameter* EltwiseParameter::New() const { - return new EltwiseParameter; -} - -void EltwiseParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - operation_ = 1; - stable_prod_grad_ = true; - } - coeff_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool EltwiseParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::EltwiseParameter_EltwiseOp_IsValid(value)) { - set_operation(static_cast< ::caffe::EltwiseParameter_EltwiseOp >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(21)) goto parse_coeff; - break; - } - - // repeated float coeff = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_coeff: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 21, input, this->mutable_coeff()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_coeff()))); - } else { - goto handle_uninterpreted; - } - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_stable_prod_grad: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &stable_prod_grad_))); - set_has_stable_prod_grad(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void EltwiseParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional .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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* EltwiseParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional .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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int EltwiseParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .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; - { - int data_size = 0; - data_size = 4 * this->coeff_size(); - total_size += 1 * this->coeff_size() + data_size; - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void EltwiseParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const EltwiseParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void EltwiseParameter::MergeFrom(const EltwiseParameter& from) { - GOOGLE_CHECK_NE(&from, this); - coeff_.MergeFrom(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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void EltwiseParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EltwiseParameter::CopyFrom(const EltwiseParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EltwiseParameter::IsInitialized() const { - - return true; -} - -void EltwiseParameter::Swap(EltwiseParameter* other) { - if (other != this) { - std::swap(operation_, other->operation_); - coeff_.Swap(&other->coeff_); - std::swap(stable_prod_grad_, other->stable_prod_grad_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int ExpParameter::kBaseFieldNumber; -const int ExpParameter::kScaleFieldNumber; -const int ExpParameter::kShiftFieldNumber; -#endif // !_MSC_VER - -ExpParameter::ExpParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void ExpParameter::InitAsDefaultInstance() { -} - -ExpParameter::ExpParameter(const ExpParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void ExpParameter::SharedCtor() { - _cached_size_ = 0; - base_ = -1; - scale_ = 1; - shift_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ExpParameter::~ExpParameter() { - SharedDtor(); -} - -void ExpParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -ExpParameter* ExpParameter::default_instance_ = NULL; - -ExpParameter* ExpParameter::New() const { - return new ExpParameter; -} - -void ExpParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - base_ = -1; - scale_ = 1; - shift_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ExpParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float base = 1 [default = -1]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &base_))); - set_has_base(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(21)) goto parse_scale; - break; - } - - // optional float scale = 2 [default = 1]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_scale: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &scale_))); - set_has_scale(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(29)) goto parse_shift; - break; - } - - // optional float shift = 3 [default = 0]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_shift: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &shift_))); - set_has_shift(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void ExpParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* ExpParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int ExpParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ExpParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ExpParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ExpParameter::MergeFrom(const ExpParameter& from) { - GOOGLE_CHECK_NE(&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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ExpParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExpParameter::CopyFrom(const ExpParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExpParameter::IsInitialized() const { - - return true; -} - -void ExpParameter::Swap(ExpParameter* other) { - if (other != this) { - std::swap(base_, other->base_); - std::swap(scale_, other->scale_); - std::swap(shift_, other->shift_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int FlattenParameter::kAxisFieldNumber; -const int FlattenParameter::kEndAxisFieldNumber; -#endif // !_MSC_VER - -FlattenParameter::FlattenParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void FlattenParameter::InitAsDefaultInstance() { -} - -FlattenParameter::FlattenParameter(const FlattenParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void FlattenParameter::SharedCtor() { - _cached_size_ = 0; - axis_ = 1; - end_axis_ = -1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -FlattenParameter::~FlattenParameter() { - SharedDtor(); -} - -void FlattenParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -FlattenParameter* FlattenParameter::default_instance_ = NULL; - -FlattenParameter* FlattenParameter::New() const { - return new FlattenParameter; -} - -void FlattenParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - axis_ = 1; - end_axis_ = -1; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool FlattenParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 axis = 1 [default = 1]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - set_has_axis(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_end_axis; - break; - } - - // optional int32 end_axis = 2 [default = -1]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_end_axis: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &end_axis_))); - set_has_end_axis(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void FlattenParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* FlattenParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int FlattenParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void FlattenParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const FlattenParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void FlattenParameter::MergeFrom(const FlattenParameter& from) { - GOOGLE_CHECK_NE(&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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void FlattenParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FlattenParameter::CopyFrom(const FlattenParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FlattenParameter::IsInitialized() const { - - return true; -} - -void FlattenParameter::Swap(FlattenParameter* other) { - if (other != this) { - std::swap(axis_, other->axis_); - std::swap(end_axis_, other->end_axis_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int HDF5DataParameter::kSourceFieldNumber; -const int HDF5DataParameter::kBatchSizeFieldNumber; -const int HDF5DataParameter::kShuffleFieldNumber; -#endif // !_MSC_VER - -HDF5DataParameter::HDF5DataParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void HDF5DataParameter::InitAsDefaultInstance() { -} - -HDF5DataParameter::HDF5DataParameter(const HDF5DataParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void HDF5DataParameter::SharedCtor() { - _cached_size_ = 0; - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - batch_size_ = 0u; - shuffle_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -HDF5DataParameter::~HDF5DataParameter() { - SharedDtor(); -} - -void HDF5DataParameter::SharedDtor() { - if (source_ != &::google::protobuf::internal::kEmptyString) { - delete source_; - } - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -HDF5DataParameter* HDF5DataParameter::default_instance_ = NULL; - -HDF5DataParameter* HDF5DataParameter::New() const { - return new HDF5DataParameter; -} - -void HDF5DataParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_source()) { - if (source_ != &::google::protobuf::internal::kEmptyString) { - source_->clear(); - } - } - batch_size_ = 0u; - shuffle_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool HDF5DataParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string source = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_source())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_batch_size; - break; - } - - // optional uint32 batch_size = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_batch_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &batch_size_))); - set_has_batch_size(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_shuffle; - break; - } - - // optional bool shuffle = 3 [default = false]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_shuffle: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &shuffle_))); - set_has_shuffle(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void HDF5DataParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* HDF5DataParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int HDF5DataParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void HDF5DataParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const HDF5DataParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void HDF5DataParameter::MergeFrom(const HDF5DataParameter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_source()) { - set_source(from.source()); - } - if (from.has_batch_size()) { - set_batch_size(from.batch_size()); - } - if (from.has_shuffle()) { - set_shuffle(from.shuffle()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void HDF5DataParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void HDF5DataParameter::CopyFrom(const HDF5DataParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool HDF5DataParameter::IsInitialized() const { - - return true; -} - -void HDF5DataParameter::Swap(HDF5DataParameter* other) { - if (other != this) { - std::swap(source_, other->source_); - std::swap(batch_size_, other->batch_size_); - std::swap(shuffle_, other->shuffle_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int HDF5OutputParameter::kFileNameFieldNumber; -#endif // !_MSC_VER - -HDF5OutputParameter::HDF5OutputParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void HDF5OutputParameter::InitAsDefaultInstance() { -} - -HDF5OutputParameter::HDF5OutputParameter(const HDF5OutputParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void HDF5OutputParameter::SharedCtor() { - _cached_size_ = 0; - file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -HDF5OutputParameter::~HDF5OutputParameter() { - SharedDtor(); -} - -void HDF5OutputParameter::SharedDtor() { - if (file_name_ != &::google::protobuf::internal::kEmptyString) { - delete file_name_; - } - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -HDF5OutputParameter* HDF5OutputParameter::default_instance_ = NULL; - -HDF5OutputParameter* HDF5OutputParameter::New() const { - return new HDF5OutputParameter; -} - -void HDF5OutputParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_file_name()) { - if (file_name_ != &::google::protobuf::internal::kEmptyString) { - file_name_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool HDF5OutputParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string file_name = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_file_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->file_name().data(), this->file_name().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void HDF5OutputParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional string file_name = 1; - if (has_file_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->file_name().data(), this->file_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->file_name(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* HDF5OutputParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional string file_name = 1; - if (has_file_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->file_name().data(), this->file_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->file_name(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int HDF5OutputParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string file_name = 1; - if (has_file_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->file_name()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void HDF5OutputParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const HDF5OutputParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void HDF5OutputParameter::MergeFrom(const HDF5OutputParameter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_file_name()) { - set_file_name(from.file_name()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void HDF5OutputParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void HDF5OutputParameter::CopyFrom(const HDF5OutputParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool HDF5OutputParameter::IsInitialized() const { - - return true; -} - -void HDF5OutputParameter::Swap(HDF5OutputParameter* other) { - if (other != this) { - std::swap(file_name_, other->file_name_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* HingeLossParameter_Norm_descriptor() { - protobuf_AssignDescriptorsOnce(); - return HingeLossParameter_Norm_descriptor_; -} -bool HingeLossParameter_Norm_IsValid(int value) { - switch(value) { - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const HingeLossParameter_Norm HingeLossParameter::L1; -const HingeLossParameter_Norm HingeLossParameter::L2; -const HingeLossParameter_Norm HingeLossParameter::Norm_MIN; -const HingeLossParameter_Norm HingeLossParameter::Norm_MAX; -const int HingeLossParameter::Norm_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int HingeLossParameter::kNormFieldNumber; -#endif // !_MSC_VER - -HingeLossParameter::HingeLossParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void HingeLossParameter::InitAsDefaultInstance() { -} - -HingeLossParameter::HingeLossParameter(const HingeLossParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void HingeLossParameter::SharedCtor() { - _cached_size_ = 0; - norm_ = 1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -HingeLossParameter::~HingeLossParameter() { - SharedDtor(); -} - -void HingeLossParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -HingeLossParameter* HingeLossParameter::default_instance_ = NULL; - -HingeLossParameter* HingeLossParameter::New() const { - return new HingeLossParameter; -} - -void HingeLossParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - norm_ = 1; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool HingeLossParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .caffe.HingeLossParameter.Norm norm = 1 [default = L1]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::HingeLossParameter_Norm_IsValid(value)) { - set_norm(static_cast< ::caffe::HingeLossParameter_Norm >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void HingeLossParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional .caffe.HingeLossParameter.Norm norm = 1 [default = L1]; - if (has_norm()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->norm(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* HingeLossParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional .caffe.HingeLossParameter.Norm norm = 1 [default = L1]; - if (has_norm()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->norm(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int HingeLossParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .caffe.HingeLossParameter.Norm norm = 1 [default = L1]; - if (has_norm()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->norm()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void HingeLossParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const HingeLossParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void HingeLossParameter::MergeFrom(const HingeLossParameter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_norm()) { - set_norm(from.norm()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void HingeLossParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void HingeLossParameter::CopyFrom(const HingeLossParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool HingeLossParameter::IsInitialized() const { - - return true; -} - -void HingeLossParameter::Swap(HingeLossParameter* other) { - if (other != this) { - std::swap(norm_, other->norm_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -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 // !_MSC_VER - -ImageDataParameter::ImageDataParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void ImageDataParameter::InitAsDefaultInstance() { -} - -ImageDataParameter::ImageDataParameter(const ImageDataParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void ImageDataParameter::SharedCtor() { - _cached_size_ = 0; - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - batch_size_ = 0u; - rand_skip_ = 0u; - shuffle_ = false; - new_height_ = 0u; - new_width_ = 0u; - is_color_ = true; - scale_ = 1; - mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - crop_size_ = 0u; - mirror_ = false; - root_folder_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ImageDataParameter::~ImageDataParameter() { - SharedDtor(); -} - -void ImageDataParameter::SharedDtor() { - if (source_ != &::google::protobuf::internal::kEmptyString) { - delete source_; - } - if (mean_file_ != &::google::protobuf::internal::kEmptyString) { - delete mean_file_; - } - if (root_folder_ != &::google::protobuf::internal::kEmptyString) { - delete root_folder_; - } - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -ImageDataParameter* ImageDataParameter::default_instance_ = NULL; - -ImageDataParameter* ImageDataParameter::New() const { - return new ImageDataParameter; -} - -void ImageDataParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_source()) { - if (source_ != &::google::protobuf::internal::kEmptyString) { - source_->clear(); - } - } - batch_size_ = 0u; - rand_skip_ = 0u; - shuffle_ = false; - new_height_ = 0u; - new_width_ = 0u; - is_color_ = true; - scale_ = 1; - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (has_mean_file()) { - if (mean_file_ != &::google::protobuf::internal::kEmptyString) { - mean_file_->clear(); - } - } - crop_size_ = 0u; - mirror_ = false; - if (has_root_folder()) { - if (root_folder_ != &::google::protobuf::internal::kEmptyString) { - root_folder_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ImageDataParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string source = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_source())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(21)) goto parse_scale; - break; - } - - // optional float scale = 2 [default = 1]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_scale: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &scale_))); - set_has_scale(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_mean_file; - break; - } - - // optional string mean_file = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_mean_file: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_mean_file())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_batch_size; - break; - } - - // optional uint32 batch_size = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_batch_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &batch_size_))); - set_has_batch_size(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_crop_size; - break; - } - - // optional uint32 crop_size = 5 [default = 0]; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_crop_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &crop_size_))); - set_has_crop_size(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_mirror; - break; - } - - // optional bool mirror = 6 [default = false]; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_mirror: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &mirror_))); - set_has_mirror(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(56)) goto parse_rand_skip; - break; - } - - // optional uint32 rand_skip = 7 [default = 0]; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_rand_skip: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &rand_skip_))); - set_has_rand_skip(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(64)) goto parse_shuffle; - break; - } - - // optional bool shuffle = 8 [default = false]; - case 8: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_shuffle: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &shuffle_))); - set_has_shuffle(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(72)) goto parse_new_height; - break; - } - - // optional uint32 new_height = 9 [default = 0]; - case 9: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_new_height: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &new_height_))); - set_has_new_height(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(80)) goto parse_new_width; - break; - } - - // optional uint32 new_width = 10 [default = 0]; - case 10: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_new_width: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &new_width_))); - set_has_new_width(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(88)) goto parse_is_color; - break; - } - - // optional bool is_color = 11 [default = true]; - case 11: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_is_color: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_color_))); - set_has_is_color(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(98)) goto parse_root_folder; - break; - } - - // optional string root_folder = 12 [default = ""]; - case 12: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_root_folder: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_root_folder())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->root_folder().data(), this->root_folder().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void ImageDataParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 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::VerifyUTF8String( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 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 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::VerifyUTF8String( - this->root_folder().data(), this->root_folder().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 12, this->root_folder(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* ImageDataParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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::VerifyUTF8String( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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 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::VerifyUTF8String( - this->root_folder().data(), this->root_folder().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 12, this->root_folder(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int ImageDataParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 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] & (0xffu << (8 % 32))) { - // 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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ImageDataParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ImageDataParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ImageDataParameter::MergeFrom(const ImageDataParameter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_source()) { - set_source(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_mean_file(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_root_folder(from.root_folder()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ImageDataParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ImageDataParameter::CopyFrom(const ImageDataParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ImageDataParameter::IsInitialized() const { - - return true; -} - -void ImageDataParameter::Swap(ImageDataParameter* other) { - if (other != this) { - std::swap(source_, 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_); - std::swap(mean_file_, other->mean_file_); - std::swap(crop_size_, other->crop_size_); - std::swap(mirror_, other->mirror_); - std::swap(root_folder_, other->root_folder_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int InfogainLossParameter::kSourceFieldNumber; -#endif // !_MSC_VER - -InfogainLossParameter::InfogainLossParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void InfogainLossParameter::InitAsDefaultInstance() { -} - -InfogainLossParameter::InfogainLossParameter(const InfogainLossParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void InfogainLossParameter::SharedCtor() { - _cached_size_ = 0; - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -InfogainLossParameter::~InfogainLossParameter() { - SharedDtor(); -} - -void InfogainLossParameter::SharedDtor() { - if (source_ != &::google::protobuf::internal::kEmptyString) { - delete source_; - } - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -InfogainLossParameter* InfogainLossParameter::default_instance_ = NULL; - -InfogainLossParameter* InfogainLossParameter::New() const { - return new InfogainLossParameter; -} - -void InfogainLossParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_source()) { - if (source_ != &::google::protobuf::internal::kEmptyString) { - source_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool InfogainLossParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string source = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_source())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void InfogainLossParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->source(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* InfogainLossParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->source(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int InfogainLossParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string source = 1; - if (has_source()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->source()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void InfogainLossParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const InfogainLossParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void InfogainLossParameter::MergeFrom(const InfogainLossParameter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_source()) { - set_source(from.source()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void InfogainLossParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InfogainLossParameter::CopyFrom(const InfogainLossParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InfogainLossParameter::IsInitialized() const { - - return true; -} - -void InfogainLossParameter::Swap(InfogainLossParameter* other) { - if (other != this) { - std::swap(source_, other->source_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int InnerProductParameter::kNumOutputFieldNumber; -const int InnerProductParameter::kBiasTermFieldNumber; -const int InnerProductParameter::kWeightFillerFieldNumber; -const int InnerProductParameter::kBiasFillerFieldNumber; -const int InnerProductParameter::kAxisFieldNumber; -#endif // !_MSC_VER - -InnerProductParameter::InnerProductParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void InnerProductParameter::InitAsDefaultInstance() { - weight_filler_ = const_cast< ::caffe::FillerParameter*>(&::caffe::FillerParameter::default_instance()); - bias_filler_ = const_cast< ::caffe::FillerParameter*>(&::caffe::FillerParameter::default_instance()); -} - -InnerProductParameter::InnerProductParameter(const InnerProductParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void InnerProductParameter::SharedCtor() { - _cached_size_ = 0; - num_output_ = 0u; - bias_term_ = true; - weight_filler_ = NULL; - bias_filler_ = NULL; - axis_ = 1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -InnerProductParameter::~InnerProductParameter() { - SharedDtor(); -} - -void InnerProductParameter::SharedDtor() { - if (this != default_instance_) { - 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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -InnerProductParameter* InnerProductParameter::default_instance_ = NULL; - -InnerProductParameter* InnerProductParameter::New() const { - return new InnerProductParameter; -} - -void InnerProductParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - num_output_ = 0u; - bias_term_ = true; - if (has_weight_filler()) { - if (weight_filler_ != NULL) weight_filler_->::caffe::FillerParameter::Clear(); - } - if (has_bias_filler()) { - if (bias_filler_ != NULL) bias_filler_->::caffe::FillerParameter::Clear(); - } - axis_ = 1; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool InnerProductParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 num_output = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &num_output_))); - set_has_num_output(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_bias_term; - break; - } - - // optional bool bias_term = 2 [default = true]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_bias_term: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &bias_term_))); - set_has_bias_term(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_weight_filler; - break; - } - - // optional .caffe.FillerParameter weight_filler = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_weight_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_weight_filler())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_bias_filler; - break; - } - - // optional .caffe.FillerParameter bias_filler = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_bias_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_bias_filler())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_axis; - break; - } - - // optional int32 axis = 5 [default = 1]; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_axis: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - set_has_axis(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void InnerProductParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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 .caffe.FillerParameter weight_filler = 3; - if (has_weight_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->weight_filler(), output); - } - - // optional .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); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* InnerProductParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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 .caffe.FillerParameter weight_filler = 3; - if (has_weight_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->weight_filler(), target); - } - - // optional .caffe.FillerParameter bias_filler = 4; - if (has_bias_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->bias_filler(), target); - } - - // optional int32 axis = 5 [default = 1]; - if (has_axis()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->axis(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int InnerProductParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 .caffe.FillerParameter weight_filler = 3; - if (has_weight_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->weight_filler()); - } - - // optional .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()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void InnerProductParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const InnerProductParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void InnerProductParameter::MergeFrom(const InnerProductParameter& from) { - GOOGLE_CHECK_NE(&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()->::caffe::FillerParameter::MergeFrom(from.weight_filler()); - } - if (from.has_bias_filler()) { - mutable_bias_filler()->::caffe::FillerParameter::MergeFrom(from.bias_filler()); - } - if (from.has_axis()) { - set_axis(from.axis()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void InnerProductParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InnerProductParameter::CopyFrom(const InnerProductParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InnerProductParameter::IsInitialized() const { - - return true; -} - -void InnerProductParameter::Swap(InnerProductParameter* other) { - if (other != this) { - 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(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int LogParameter::kBaseFieldNumber; -const int LogParameter::kScaleFieldNumber; -const int LogParameter::kShiftFieldNumber; -#endif // !_MSC_VER - -LogParameter::LogParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void LogParameter::InitAsDefaultInstance() { -} - -LogParameter::LogParameter(const LogParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void LogParameter::SharedCtor() { - _cached_size_ = 0; - base_ = -1; - scale_ = 1; - shift_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -LogParameter::~LogParameter() { - SharedDtor(); -} - -void LogParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -LogParameter* LogParameter::default_instance_ = NULL; - -LogParameter* LogParameter::New() const { - return new LogParameter; -} - -void LogParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - base_ = -1; - scale_ = 1; - shift_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool LogParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float base = 1 [default = -1]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &base_))); - set_has_base(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(21)) goto parse_scale; - break; - } - - // optional float scale = 2 [default = 1]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_scale: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &scale_))); - set_has_scale(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(29)) goto parse_shift; - break; - } - - // optional float shift = 3 [default = 0]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_shift: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &shift_))); - set_has_shift(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void LogParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* LogParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int LogParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void LogParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const LogParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void LogParameter::MergeFrom(const LogParameter& from) { - GOOGLE_CHECK_NE(&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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void LogParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LogParameter::CopyFrom(const LogParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LogParameter::IsInitialized() const { - - return true; -} - -void LogParameter::Swap(LogParameter* other) { - if (other != this) { - std::swap(base_, other->base_); - std::swap(scale_, other->scale_); - std::swap(shift_, other->shift_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* LRNParameter_NormRegion_descriptor() { - protobuf_AssignDescriptorsOnce(); - return LRNParameter_NormRegion_descriptor_; -} -bool LRNParameter_NormRegion_IsValid(int value) { - switch(value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const LRNParameter_NormRegion LRNParameter::ACROSS_CHANNELS; -const LRNParameter_NormRegion LRNParameter::WITHIN_CHANNEL; -const LRNParameter_NormRegion LRNParameter::NormRegion_MIN; -const LRNParameter_NormRegion LRNParameter::NormRegion_MAX; -const int LRNParameter::NormRegion_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int LRNParameter::kLocalSizeFieldNumber; -const int LRNParameter::kAlphaFieldNumber; -const int LRNParameter::kBetaFieldNumber; -const int LRNParameter::kNormRegionFieldNumber; -const int LRNParameter::kKFieldNumber; -#endif // !_MSC_VER - -LRNParameter::LRNParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void LRNParameter::InitAsDefaultInstance() { -} - -LRNParameter::LRNParameter(const LRNParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void LRNParameter::SharedCtor() { - _cached_size_ = 0; - local_size_ = 5u; - alpha_ = 1; - beta_ = 0.75f; - norm_region_ = 0; - k_ = 1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -LRNParameter::~LRNParameter() { - SharedDtor(); -} - -void LRNParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -LRNParameter* LRNParameter::default_instance_ = NULL; - -LRNParameter* LRNParameter::New() const { - return new LRNParameter; -} - -void LRNParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - local_size_ = 5u; - alpha_ = 1; - beta_ = 0.75f; - norm_region_ = 0; - k_ = 1; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool LRNParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 local_size = 1 [default = 5]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &local_size_))); - set_has_local_size(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(21)) goto parse_alpha; - break; - } - - // optional float alpha = 2 [default = 1]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_alpha: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &alpha_))); - set_has_alpha(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(29)) goto parse_beta; - break; - } - - // optional float beta = 3 [default = 0.75]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_beta: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &beta_))); - set_has_beta(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_norm_region; - break; - } - - // optional .caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS]; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_norm_region: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::LRNParameter_NormRegion_IsValid(value)) { - set_norm_region(static_cast< ::caffe::LRNParameter_NormRegion >(value)); - } else { - mutable_unknown_fields()->AddVarint(4, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(45)) goto parse_k; - break; - } - - // optional float k = 5 [default = 1]; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_k: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &k_))); - set_has_k(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void LRNParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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 .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); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* LRNParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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 .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); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int LRNParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 .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; - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void LRNParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const LRNParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void LRNParameter::MergeFrom(const LRNParameter& from) { - GOOGLE_CHECK_NE(&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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void LRNParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LRNParameter::CopyFrom(const LRNParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LRNParameter::IsInitialized() const { - - return true; -} - -void LRNParameter::Swap(LRNParameter* other) { - if (other != this) { - 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(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int MemoryDataParameter::kBatchSizeFieldNumber; -const int MemoryDataParameter::kChannelsFieldNumber; -const int MemoryDataParameter::kHeightFieldNumber; -const int MemoryDataParameter::kWidthFieldNumber; -#endif // !_MSC_VER - -MemoryDataParameter::MemoryDataParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void MemoryDataParameter::InitAsDefaultInstance() { -} - -MemoryDataParameter::MemoryDataParameter(const MemoryDataParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void MemoryDataParameter::SharedCtor() { - _cached_size_ = 0; - batch_size_ = 0u; - channels_ = 0u; - height_ = 0u; - width_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -MemoryDataParameter::~MemoryDataParameter() { - SharedDtor(); -} - -void MemoryDataParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -MemoryDataParameter* MemoryDataParameter::default_instance_ = NULL; - -MemoryDataParameter* MemoryDataParameter::New() const { - return new MemoryDataParameter; -} - -void MemoryDataParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - batch_size_ = 0u; - channels_ = 0u; - height_ = 0u; - width_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MemoryDataParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 batch_size = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &batch_size_))); - set_has_batch_size(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_channels; - break; - } - - // optional uint32 channels = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_channels: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &channels_))); - set_has_channels(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_height; - break; - } - - // optional uint32 height = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_height: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &height_))); - set_has_height(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_width; - break; - } - - // optional uint32 width = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_width: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &width_))); - set_has_width(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void MemoryDataParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* MemoryDataParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int MemoryDataParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void MemoryDataParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemoryDataParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemoryDataParameter::MergeFrom(const MemoryDataParameter& from) { - GOOGLE_CHECK_NE(&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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemoryDataParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemoryDataParameter::CopyFrom(const MemoryDataParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MemoryDataParameter::IsInitialized() const { - - return true; -} - -void MemoryDataParameter::Swap(MemoryDataParameter* other) { - if (other != this) { - 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]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int MVNParameter::kNormalizeVarianceFieldNumber; -const int MVNParameter::kAcrossChannelsFieldNumber; -const int MVNParameter::kEpsFieldNumber; -#endif // !_MSC_VER - -MVNParameter::MVNParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void MVNParameter::InitAsDefaultInstance() { -} - -MVNParameter::MVNParameter(const MVNParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void MVNParameter::SharedCtor() { - _cached_size_ = 0; - normalize_variance_ = true; - across_channels_ = false; - eps_ = 1e-09f; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -MVNParameter::~MVNParameter() { - SharedDtor(); -} - -void MVNParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -MVNParameter* MVNParameter::default_instance_ = NULL; - -MVNParameter* MVNParameter::New() const { - return new MVNParameter; -} - -void MVNParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - normalize_variance_ = true; - across_channels_ = false; - eps_ = 1e-09f; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MVNParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional bool normalize_variance = 1 [default = true]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &normalize_variance_))); - set_has_normalize_variance(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_across_channels; - break; - } - - // optional bool across_channels = 2 [default = false]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_across_channels: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &across_channels_))); - set_has_across_channels(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(29)) goto parse_eps; - break; - } - - // optional float eps = 3 [default = 1e-09]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_eps: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &eps_))); - set_has_eps(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void MVNParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* MVNParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int MVNParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void MVNParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MVNParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MVNParameter::MergeFrom(const MVNParameter& from) { - GOOGLE_CHECK_NE(&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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MVNParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MVNParameter::CopyFrom(const MVNParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MVNParameter::IsInitialized() const { - - return true; -} - -void MVNParameter::Swap(MVNParameter* other) { - if (other != this) { - 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]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* PoolingParameter_PoolMethod_descriptor() { - protobuf_AssignDescriptorsOnce(); - return PoolingParameter_PoolMethod_descriptor_; -} -bool PoolingParameter_PoolMethod_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const PoolingParameter_PoolMethod PoolingParameter::MAX; -const PoolingParameter_PoolMethod PoolingParameter::AVE; -const PoolingParameter_PoolMethod PoolingParameter::STOCHASTIC; -const PoolingParameter_PoolMethod PoolingParameter::PoolMethod_MIN; -const PoolingParameter_PoolMethod PoolingParameter::PoolMethod_MAX; -const int PoolingParameter::PoolMethod_ARRAYSIZE; -#endif // _MSC_VER -const ::google::protobuf::EnumDescriptor* PoolingParameter_Engine_descriptor() { - protobuf_AssignDescriptorsOnce(); - return PoolingParameter_Engine_descriptor_; -} -bool PoolingParameter_Engine_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const PoolingParameter_Engine PoolingParameter::DEFAULT; -const PoolingParameter_Engine PoolingParameter::CAFFE; -const PoolingParameter_Engine PoolingParameter::CUDNN; -const PoolingParameter_Engine PoolingParameter::Engine_MIN; -const PoolingParameter_Engine PoolingParameter::Engine_MAX; -const int PoolingParameter::Engine_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -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; -#endif // !_MSC_VER - -PoolingParameter::PoolingParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void PoolingParameter::InitAsDefaultInstance() { -} - -PoolingParameter::PoolingParameter(const PoolingParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void PoolingParameter::SharedCtor() { - _cached_size_ = 0; - pool_ = 0; - pad_ = 0u; - pad_h_ = 0u; - pad_w_ = 0u; - kernel_size_ = 0u; - kernel_h_ = 0u; - kernel_w_ = 0u; - stride_ = 1u; - stride_h_ = 0u; - stride_w_ = 0u; - engine_ = 0; - global_pooling_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PoolingParameter::~PoolingParameter() { - SharedDtor(); -} - -void PoolingParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -PoolingParameter* PoolingParameter::default_instance_ = NULL; - -PoolingParameter* PoolingParameter::New() const { - return new PoolingParameter; -} - -void PoolingParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - pool_ = 0; - pad_ = 0u; - pad_h_ = 0u; - pad_w_ = 0u; - kernel_size_ = 0u; - kernel_h_ = 0u; - kernel_w_ = 0u; - stride_ = 1u; - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - stride_h_ = 0u; - stride_w_ = 0u; - engine_ = 0; - global_pooling_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool PoolingParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::PoolingParameter_PoolMethod_IsValid(value)) { - set_pool(static_cast< ::caffe::PoolingParameter_PoolMethod >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_kernel_size; - break; - } - - // optional uint32 kernel_size = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_kernel_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &kernel_size_))); - set_has_kernel_size(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_stride; - break; - } - - // optional uint32 stride = 3 [default = 1]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_stride: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &stride_))); - set_has_stride(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_pad; - break; - } - - // optional uint32 pad = 4 [default = 0]; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_pad: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &pad_))); - set_has_pad(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_kernel_h; - break; - } - - // optional uint32 kernel_h = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_kernel_h: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &kernel_h_))); - set_has_kernel_h(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_kernel_w; - break; - } - - // optional uint32 kernel_w = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_kernel_w: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &kernel_w_))); - set_has_kernel_w(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(56)) goto parse_stride_h; - break; - } - - // optional uint32 stride_h = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_stride_h: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &stride_h_))); - set_has_stride_h(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(64)) goto parse_stride_w; - break; - } - - // optional uint32 stride_w = 8; - case 8: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_stride_w: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &stride_w_))); - set_has_stride_w(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(72)) goto parse_pad_h; - break; - } - - // optional uint32 pad_h = 9 [default = 0]; - case 9: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_pad_h: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &pad_h_))); - set_has_pad_h(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(80)) goto parse_pad_w; - break; - } - - // optional uint32 pad_w = 10 [default = 0]; - case 10: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_pad_w: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &pad_w_))); - set_has_pad_w(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(88)) goto parse_engine; - break; - } - - // optional .caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT]; - case 11: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_engine: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::PoolingParameter_Engine_IsValid(value)) { - set_engine(static_cast< ::caffe::PoolingParameter_Engine >(value)); - } else { - mutable_unknown_fields()->AddVarint(11, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(96)) goto parse_global_pooling; - break; - } - - // optional bool global_pooling = 12 [default = false]; - case 12: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_global_pooling: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &global_pooling_))); - set_has_global_pooling(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void PoolingParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional .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 .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); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* PoolingParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional .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 .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); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int PoolingParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .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] & (0xffu << (8 % 32))) { - // 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 .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; - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PoolingParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const PoolingParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void PoolingParameter::MergeFrom(const PoolingParameter& from) { - GOOGLE_CHECK_NE(&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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void PoolingParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PoolingParameter::CopyFrom(const PoolingParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PoolingParameter::IsInitialized() const { - - return true; -} - -void PoolingParameter::Swap(PoolingParameter* other) { - if (other != this) { - 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(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int PowerParameter::kPowerFieldNumber; -const int PowerParameter::kScaleFieldNumber; -const int PowerParameter::kShiftFieldNumber; -#endif // !_MSC_VER - -PowerParameter::PowerParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void PowerParameter::InitAsDefaultInstance() { -} - -PowerParameter::PowerParameter(const PowerParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void PowerParameter::SharedCtor() { - _cached_size_ = 0; - power_ = 1; - scale_ = 1; - shift_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PowerParameter::~PowerParameter() { - SharedDtor(); -} - -void PowerParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -PowerParameter* PowerParameter::default_instance_ = NULL; - -PowerParameter* PowerParameter::New() const { - return new PowerParameter; -} - -void PowerParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - power_ = 1; - scale_ = 1; - shift_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool PowerParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float power = 1 [default = 1]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &power_))); - set_has_power(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(21)) goto parse_scale; - break; - } - - // optional float scale = 2 [default = 1]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_scale: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &scale_))); - set_has_scale(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(29)) goto parse_shift; - break; - } - - // optional float shift = 3 [default = 0]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_shift: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &shift_))); - set_has_shift(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void PowerParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* PowerParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int PowerParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PowerParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const PowerParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void PowerParameter::MergeFrom(const PowerParameter& from) { - GOOGLE_CHECK_NE(&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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void PowerParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PowerParameter::CopyFrom(const PowerParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PowerParameter::IsInitialized() const { - - return true; -} - -void PowerParameter::Swap(PowerParameter* other) { - if (other != this) { - std::swap(power_, other->power_); - std::swap(scale_, other->scale_); - std::swap(shift_, other->shift_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int PythonParameter::kModuleFieldNumber; -const int PythonParameter::kLayerFieldNumber; -#endif // !_MSC_VER - -PythonParameter::PythonParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void PythonParameter::InitAsDefaultInstance() { -} - -PythonParameter::PythonParameter(const PythonParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void PythonParameter::SharedCtor() { - _cached_size_ = 0; - module_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - layer_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PythonParameter::~PythonParameter() { - SharedDtor(); -} - -void PythonParameter::SharedDtor() { - if (module_ != &::google::protobuf::internal::kEmptyString) { - delete module_; - } - if (layer_ != &::google::protobuf::internal::kEmptyString) { - delete layer_; - } - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -PythonParameter* PythonParameter::default_instance_ = NULL; - -PythonParameter* PythonParameter::New() const { - return new PythonParameter; -} - -void PythonParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_module()) { - if (module_ != &::google::protobuf::internal::kEmptyString) { - module_->clear(); - } - } - if (has_layer()) { - if (layer_ != &::google::protobuf::internal::kEmptyString) { - layer_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool PythonParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string module = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_module())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->module().data(), this->module().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_layer; - break; - } - - // optional string layer = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_layer: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_layer())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->layer().data(), this->layer().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void PythonParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional string module = 1; - if (has_module()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->module().data(), this->module().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->module(), output); - } - - // optional string layer = 2; - if (has_layer()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->layer().data(), this->layer().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->layer(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* PythonParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional string module = 1; - if (has_module()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->module().data(), this->module().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->module(), target); - } - - // optional string layer = 2; - if (has_layer()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->layer().data(), this->layer().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->layer(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int PythonParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PythonParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const PythonParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void PythonParameter::MergeFrom(const PythonParameter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_module()) { - set_module(from.module()); - } - if (from.has_layer()) { - set_layer(from.layer()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void PythonParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PythonParameter::CopyFrom(const PythonParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PythonParameter::IsInitialized() const { - - return true; -} - -void PythonParameter::Swap(PythonParameter* other) { - if (other != this) { - std::swap(module_, other->module_); - std::swap(layer_, other->layer_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* ReductionParameter_ReductionOp_descriptor() { - protobuf_AssignDescriptorsOnce(); - return ReductionParameter_ReductionOp_descriptor_; -} -bool ReductionParameter_ReductionOp_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const ReductionParameter_ReductionOp ReductionParameter::SUM; -const ReductionParameter_ReductionOp ReductionParameter::ASUM; -const ReductionParameter_ReductionOp ReductionParameter::SUMSQ; -const ReductionParameter_ReductionOp ReductionParameter::MEAN; -const ReductionParameter_ReductionOp ReductionParameter::ReductionOp_MIN; -const ReductionParameter_ReductionOp ReductionParameter::ReductionOp_MAX; -const int ReductionParameter::ReductionOp_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int ReductionParameter::kOperationFieldNumber; -const int ReductionParameter::kAxisFieldNumber; -const int ReductionParameter::kCoeffFieldNumber; -#endif // !_MSC_VER - -ReductionParameter::ReductionParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void ReductionParameter::InitAsDefaultInstance() { -} - -ReductionParameter::ReductionParameter(const ReductionParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void ReductionParameter::SharedCtor() { - _cached_size_ = 0; - operation_ = 1; - axis_ = 0; - coeff_ = 1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ReductionParameter::~ReductionParameter() { - SharedDtor(); -} - -void ReductionParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -ReductionParameter* ReductionParameter::default_instance_ = NULL; - -ReductionParameter* ReductionParameter::New() const { - return new ReductionParameter; -} - -void ReductionParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - operation_ = 1; - axis_ = 0; - coeff_ = 1; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ReductionParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::ReductionParameter_ReductionOp_IsValid(value)) { - set_operation(static_cast< ::caffe::ReductionParameter_ReductionOp >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_axis; - break; - } - - // optional int32 axis = 2 [default = 0]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_axis: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - set_has_axis(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(29)) goto parse_coeff; - break; - } - - // optional float coeff = 3 [default = 1]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_coeff: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &coeff_))); - set_has_coeff(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void ReductionParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional .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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* ReductionParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional .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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int ReductionParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ReductionParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ReductionParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ReductionParameter::MergeFrom(const ReductionParameter& from) { - GOOGLE_CHECK_NE(&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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ReductionParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ReductionParameter::CopyFrom(const ReductionParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ReductionParameter::IsInitialized() const { - - return true; -} - -void ReductionParameter::Swap(ReductionParameter* other) { - if (other != this) { - std::swap(operation_, other->operation_); - std::swap(axis_, other->axis_); - std::swap(coeff_, other->coeff_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* ReLUParameter_Engine_descriptor() { - protobuf_AssignDescriptorsOnce(); - return ReLUParameter_Engine_descriptor_; -} -bool ReLUParameter_Engine_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const ReLUParameter_Engine ReLUParameter::DEFAULT; -const ReLUParameter_Engine ReLUParameter::CAFFE; -const ReLUParameter_Engine ReLUParameter::CUDNN; -const ReLUParameter_Engine ReLUParameter::Engine_MIN; -const ReLUParameter_Engine ReLUParameter::Engine_MAX; -const int ReLUParameter::Engine_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int ReLUParameter::kNegativeSlopeFieldNumber; -const int ReLUParameter::kEngineFieldNumber; -#endif // !_MSC_VER - -ReLUParameter::ReLUParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void ReLUParameter::InitAsDefaultInstance() { -} - -ReLUParameter::ReLUParameter(const ReLUParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void ReLUParameter::SharedCtor() { - _cached_size_ = 0; - negative_slope_ = 0; - engine_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ReLUParameter::~ReLUParameter() { - SharedDtor(); -} - -void ReLUParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -ReLUParameter* ReLUParameter::default_instance_ = NULL; - -ReLUParameter* ReLUParameter::New() const { - return new ReLUParameter; -} - -void ReLUParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - negative_slope_ = 0; - engine_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ReLUParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float negative_slope = 1 [default = 0]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &negative_slope_))); - set_has_negative_slope(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_engine; - break; - } - - // optional .caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_engine: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::ReLUParameter_Engine_IsValid(value)) { - set_engine(static_cast< ::caffe::ReLUParameter_Engine >(value)); - } else { - mutable_unknown_fields()->AddVarint(2, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void ReLUParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional float negative_slope = 1 [default = 0]; - if (has_negative_slope()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->negative_slope(), output); - } - - // optional .caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT]; - if (has_engine()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->engine(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* ReLUParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional float negative_slope = 1 [default = 0]; - if (has_negative_slope()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->negative_slope(), target); - } - - // optional .caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT]; - if (has_engine()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->engine(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int ReLUParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional float negative_slope = 1 [default = 0]; - if (has_negative_slope()) { - total_size += 1 + 4; - } - - // optional .caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT]; - if (has_engine()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ReLUParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ReLUParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ReLUParameter::MergeFrom(const ReLUParameter& from) { - GOOGLE_CHECK_NE(&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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ReLUParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ReLUParameter::CopyFrom(const ReLUParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ReLUParameter::IsInitialized() const { - - return true; -} - -void ReLUParameter::Swap(ReLUParameter* other) { - if (other != this) { - std::swap(negative_slope_, other->negative_slope_); - std::swap(engine_, other->engine_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int ReshapeParameter::kShapeFieldNumber; -const int ReshapeParameter::kAxisFieldNumber; -const int ReshapeParameter::kNumAxesFieldNumber; -#endif // !_MSC_VER - -ReshapeParameter::ReshapeParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void ReshapeParameter::InitAsDefaultInstance() { - shape_ = const_cast< ::caffe::BlobShape*>(&::caffe::BlobShape::default_instance()); -} - -ReshapeParameter::ReshapeParameter(const ReshapeParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void ReshapeParameter::SharedCtor() { - _cached_size_ = 0; - shape_ = NULL; - axis_ = 0; - num_axes_ = -1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ReshapeParameter::~ReshapeParameter() { - SharedDtor(); -} - -void ReshapeParameter::SharedDtor() { - if (this != 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_AssignDescriptorsOnce(); - return ReshapeParameter_descriptor_; -} - -const ReshapeParameter& ReshapeParameter::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -ReshapeParameter* ReshapeParameter::default_instance_ = NULL; - -ReshapeParameter* ReshapeParameter::New() const { - return new ReshapeParameter; -} - -void ReshapeParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_shape()) { - if (shape_ != NULL) shape_->::caffe::BlobShape::Clear(); - } - axis_ = 0; - num_axes_ = -1; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ReshapeParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .caffe.BlobShape shape = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_shape())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_axis; - break; - } - - // optional int32 axis = 2 [default = 0]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_axis: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - set_has_axis(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_num_axes; - break; - } - - // optional int32 num_axes = 3 [default = -1]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_num_axes: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &num_axes_))); - set_has_num_axes(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void ReshapeParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional .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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* ReshapeParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional .caffe.BlobShape shape = 1; - if (has_shape()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->shape(), 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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int ReshapeParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ReshapeParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ReshapeParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ReshapeParameter::MergeFrom(const ReshapeParameter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_shape()) { - mutable_shape()->::caffe::BlobShape::MergeFrom(from.shape()); - } - if (from.has_axis()) { - set_axis(from.axis()); - } - if (from.has_num_axes()) { - set_num_axes(from.num_axes()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ReshapeParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ReshapeParameter::CopyFrom(const ReshapeParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ReshapeParameter::IsInitialized() const { - - return true; -} - -void ReshapeParameter::Swap(ReshapeParameter* other) { - if (other != this) { - 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]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* SigmoidParameter_Engine_descriptor() { - protobuf_AssignDescriptorsOnce(); - return SigmoidParameter_Engine_descriptor_; -} -bool SigmoidParameter_Engine_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const SigmoidParameter_Engine SigmoidParameter::DEFAULT; -const SigmoidParameter_Engine SigmoidParameter::CAFFE; -const SigmoidParameter_Engine SigmoidParameter::CUDNN; -const SigmoidParameter_Engine SigmoidParameter::Engine_MIN; -const SigmoidParameter_Engine SigmoidParameter::Engine_MAX; -const int SigmoidParameter::Engine_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int SigmoidParameter::kEngineFieldNumber; -#endif // !_MSC_VER - -SigmoidParameter::SigmoidParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void SigmoidParameter::InitAsDefaultInstance() { -} - -SigmoidParameter::SigmoidParameter(const SigmoidParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void SigmoidParameter::SharedCtor() { - _cached_size_ = 0; - engine_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -SigmoidParameter::~SigmoidParameter() { - SharedDtor(); -} - -void SigmoidParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -SigmoidParameter* SigmoidParameter::default_instance_ = NULL; - -SigmoidParameter* SigmoidParameter::New() const { - return new SigmoidParameter; -} - -void SigmoidParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - engine_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SigmoidParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::SigmoidParameter_Engine_IsValid(value)) { - set_engine(static_cast< ::caffe::SigmoidParameter_Engine >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void SigmoidParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional .caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT]; - if (has_engine()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->engine(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* SigmoidParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional .caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT]; - if (has_engine()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->engine(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int SigmoidParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT]; - if (has_engine()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SigmoidParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SigmoidParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SigmoidParameter::MergeFrom(const SigmoidParameter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_engine()) { - set_engine(from.engine()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SigmoidParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SigmoidParameter::CopyFrom(const SigmoidParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SigmoidParameter::IsInitialized() const { - - return true; -} - -void SigmoidParameter::Swap(SigmoidParameter* other) { - if (other != this) { - std::swap(engine_, other->engine_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int SliceParameter::kAxisFieldNumber; -const int SliceParameter::kSlicePointFieldNumber; -const int SliceParameter::kSliceDimFieldNumber; -#endif // !_MSC_VER - -SliceParameter::SliceParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void SliceParameter::InitAsDefaultInstance() { -} - -SliceParameter::SliceParameter(const SliceParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void SliceParameter::SharedCtor() { - _cached_size_ = 0; - axis_ = 1; - slice_dim_ = 1u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -SliceParameter::~SliceParameter() { - SharedDtor(); -} - -void SliceParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -SliceParameter* SliceParameter::default_instance_ = NULL; - -SliceParameter* SliceParameter::New() const { - return new SliceParameter; -} - -void SliceParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - axis_ = 1; - slice_dim_ = 1u; - } - slice_point_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SliceParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 slice_dim = 1 [default = 1]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &slice_dim_))); - set_has_slice_dim(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_slice_point; - break; - } - - // repeated uint32 slice_point = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_slice_point()))); - } else { - goto handle_uninterpreted; - } - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_axis: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - set_has_axis(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void SliceParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // 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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* SliceParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // 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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int SliceParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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; - { - int data_size = 0; - for (int i = 0; i < this->slice_point_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->slice_point(i)); - } - total_size += 1 * this->slice_point_size() + data_size; - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SliceParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SliceParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SliceParameter::MergeFrom(const SliceParameter& from) { - GOOGLE_CHECK_NE(&from, this); - slice_point_.MergeFrom(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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SliceParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SliceParameter::CopyFrom(const SliceParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SliceParameter::IsInitialized() const { - - return true; -} - -void SliceParameter::Swap(SliceParameter* other) { - if (other != this) { - std::swap(axis_, other->axis_); - slice_point_.Swap(&other->slice_point_); - std::swap(slice_dim_, other->slice_dim_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* SoftmaxParameter_Engine_descriptor() { - protobuf_AssignDescriptorsOnce(); - return SoftmaxParameter_Engine_descriptor_; -} -bool SoftmaxParameter_Engine_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const SoftmaxParameter_Engine SoftmaxParameter::DEFAULT; -const SoftmaxParameter_Engine SoftmaxParameter::CAFFE; -const SoftmaxParameter_Engine SoftmaxParameter::CUDNN; -const SoftmaxParameter_Engine SoftmaxParameter::Engine_MIN; -const SoftmaxParameter_Engine SoftmaxParameter::Engine_MAX; -const int SoftmaxParameter::Engine_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int SoftmaxParameter::kEngineFieldNumber; -const int SoftmaxParameter::kAxisFieldNumber; -#endif // !_MSC_VER - -SoftmaxParameter::SoftmaxParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void SoftmaxParameter::InitAsDefaultInstance() { -} - -SoftmaxParameter::SoftmaxParameter(const SoftmaxParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void SoftmaxParameter::SharedCtor() { - _cached_size_ = 0; - engine_ = 0; - axis_ = 1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -SoftmaxParameter::~SoftmaxParameter() { - SharedDtor(); -} - -void SoftmaxParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -SoftmaxParameter* SoftmaxParameter::default_instance_ = NULL; - -SoftmaxParameter* SoftmaxParameter::New() const { - return new SoftmaxParameter; -} - -void SoftmaxParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - engine_ = 0; - axis_ = 1; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SoftmaxParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::SoftmaxParameter_Engine_IsValid(value)) { - set_engine(static_cast< ::caffe::SoftmaxParameter_Engine >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_axis; - break; - } - - // optional int32 axis = 2 [default = 1]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_axis: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - set_has_axis(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void SoftmaxParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional .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 (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* SoftmaxParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional .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 (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int SoftmaxParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SoftmaxParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SoftmaxParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SoftmaxParameter::MergeFrom(const SoftmaxParameter& from) { - GOOGLE_CHECK_NE(&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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SoftmaxParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SoftmaxParameter::CopyFrom(const SoftmaxParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SoftmaxParameter::IsInitialized() const { - - return true; -} - -void SoftmaxParameter::Swap(SoftmaxParameter* other) { - if (other != this) { - std::swap(engine_, other->engine_); - std::swap(axis_, other->axis_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* TanHParameter_Engine_descriptor() { - protobuf_AssignDescriptorsOnce(); - return TanHParameter_Engine_descriptor_; -} -bool TanHParameter_Engine_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const TanHParameter_Engine TanHParameter::DEFAULT; -const TanHParameter_Engine TanHParameter::CAFFE; -const TanHParameter_Engine TanHParameter::CUDNN; -const TanHParameter_Engine TanHParameter::Engine_MIN; -const TanHParameter_Engine TanHParameter::Engine_MAX; -const int TanHParameter::Engine_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int TanHParameter::kEngineFieldNumber; -#endif // !_MSC_VER - -TanHParameter::TanHParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void TanHParameter::InitAsDefaultInstance() { -} - -TanHParameter::TanHParameter(const TanHParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void TanHParameter::SharedCtor() { - _cached_size_ = 0; - engine_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -TanHParameter::~TanHParameter() { - SharedDtor(); -} - -void TanHParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -TanHParameter* TanHParameter::default_instance_ = NULL; - -TanHParameter* TanHParameter::New() const { - return new TanHParameter; -} - -void TanHParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - engine_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool TanHParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .caffe.TanHParameter.Engine engine = 1 [default = DEFAULT]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::TanHParameter_Engine_IsValid(value)) { - set_engine(static_cast< ::caffe::TanHParameter_Engine >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void TanHParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional .caffe.TanHParameter.Engine engine = 1 [default = DEFAULT]; - if (has_engine()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->engine(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* TanHParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional .caffe.TanHParameter.Engine engine = 1 [default = DEFAULT]; - if (has_engine()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->engine(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int TanHParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .caffe.TanHParameter.Engine engine = 1 [default = DEFAULT]; - if (has_engine()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void TanHParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const TanHParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void TanHParameter::MergeFrom(const TanHParameter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_engine()) { - set_engine(from.engine()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void TanHParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TanHParameter::CopyFrom(const TanHParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TanHParameter::IsInitialized() const { - - return true; -} - -void TanHParameter::Swap(TanHParameter* other) { - if (other != this) { - std::swap(engine_, other->engine_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int ThresholdParameter::kThresholdFieldNumber; -#endif // !_MSC_VER - -ThresholdParameter::ThresholdParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void ThresholdParameter::InitAsDefaultInstance() { -} - -ThresholdParameter::ThresholdParameter(const ThresholdParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void ThresholdParameter::SharedCtor() { - _cached_size_ = 0; - threshold_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ThresholdParameter::~ThresholdParameter() { - SharedDtor(); -} - -void ThresholdParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -ThresholdParameter* ThresholdParameter::default_instance_ = NULL; - -ThresholdParameter* ThresholdParameter::New() const { - return new ThresholdParameter; -} - -void ThresholdParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - threshold_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ThresholdParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float threshold = 1 [default = 0]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &threshold_))); - set_has_threshold(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void ThresholdParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional float threshold = 1 [default = 0]; - if (has_threshold()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->threshold(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* ThresholdParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional float threshold = 1 [default = 0]; - if (has_threshold()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->threshold(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int ThresholdParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional float threshold = 1 [default = 0]; - if (has_threshold()) { - total_size += 1 + 4; - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ThresholdParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ThresholdParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ThresholdParameter::MergeFrom(const ThresholdParameter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_threshold()) { - set_threshold(from.threshold()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ThresholdParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ThresholdParameter::CopyFrom(const ThresholdParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ThresholdParameter::IsInitialized() const { - - return true; -} - -void ThresholdParameter::Swap(ThresholdParameter* other) { - if (other != this) { - std::swap(threshold_, other->threshold_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -::std::string* WindowDataParameter::_default_crop_mode_ = NULL; -#ifndef _MSC_VER -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 // !_MSC_VER - -WindowDataParameter::WindowDataParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void WindowDataParameter::InitAsDefaultInstance() { -} - -WindowDataParameter::WindowDataParameter(const WindowDataParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void WindowDataParameter::SharedCtor() { - _cached_size_ = 0; - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - scale_ = 1; - mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - batch_size_ = 0u; - crop_size_ = 0u; - mirror_ = false; - fg_threshold_ = 0.5f; - bg_threshold_ = 0.5f; - fg_fraction_ = 0.25f; - context_pad_ = 0u; - crop_mode_ = const_cast< ::std::string*>(_default_crop_mode_); - cache_images_ = false; - root_folder_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -WindowDataParameter::~WindowDataParameter() { - SharedDtor(); -} - -void WindowDataParameter::SharedDtor() { - if (source_ != &::google::protobuf::internal::kEmptyString) { - delete source_; - } - if (mean_file_ != &::google::protobuf::internal::kEmptyString) { - delete mean_file_; - } - if (crop_mode_ != _default_crop_mode_) { - delete crop_mode_; - } - if (root_folder_ != &::google::protobuf::internal::kEmptyString) { - delete root_folder_; - } - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -WindowDataParameter* WindowDataParameter::default_instance_ = NULL; - -WindowDataParameter* WindowDataParameter::New() const { - return new WindowDataParameter; -} - -void WindowDataParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_source()) { - if (source_ != &::google::protobuf::internal::kEmptyString) { - source_->clear(); - } - } - scale_ = 1; - if (has_mean_file()) { - if (mean_file_ != &::google::protobuf::internal::kEmptyString) { - mean_file_->clear(); - } - } - batch_size_ = 0u; - crop_size_ = 0u; - mirror_ = false; - fg_threshold_ = 0.5f; - bg_threshold_ = 0.5f; - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - fg_fraction_ = 0.25f; - context_pad_ = 0u; - if (has_crop_mode()) { - if (crop_mode_ != _default_crop_mode_) { - crop_mode_->assign(*_default_crop_mode_); - } - } - cache_images_ = false; - if (has_root_folder()) { - if (root_folder_ != &::google::protobuf::internal::kEmptyString) { - root_folder_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool WindowDataParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string source = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_source())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(21)) goto parse_scale; - break; - } - - // optional float scale = 2 [default = 1]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_scale: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &scale_))); - set_has_scale(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_mean_file; - break; - } - - // optional string mean_file = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_mean_file: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_mean_file())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_batch_size; - break; - } - - // optional uint32 batch_size = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_batch_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &batch_size_))); - set_has_batch_size(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_crop_size; - break; - } - - // optional uint32 crop_size = 5 [default = 0]; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_crop_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &crop_size_))); - set_has_crop_size(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_mirror; - break; - } - - // optional bool mirror = 6 [default = false]; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_mirror: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &mirror_))); - set_has_mirror(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(61)) goto parse_fg_threshold; - break; - } - - // optional float fg_threshold = 7 [default = 0.5]; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_fg_threshold: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &fg_threshold_))); - set_has_fg_threshold(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(69)) goto parse_bg_threshold; - break; - } - - // optional float bg_threshold = 8 [default = 0.5]; - case 8: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_bg_threshold: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &bg_threshold_))); - set_has_bg_threshold(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(77)) goto parse_fg_fraction; - break; - } - - // optional float fg_fraction = 9 [default = 0.25]; - case 9: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_fg_fraction: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &fg_fraction_))); - set_has_fg_fraction(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(80)) goto parse_context_pad; - break; - } - - // optional uint32 context_pad = 10 [default = 0]; - case 10: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_context_pad: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &context_pad_))); - set_has_context_pad(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(90)) goto parse_crop_mode; - break; - } - - // optional string crop_mode = 11 [default = "warp"]; - case 11: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_crop_mode: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_crop_mode())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->crop_mode().data(), this->crop_mode().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(96)) goto parse_cache_images; - break; - } - - // optional bool cache_images = 12 [default = false]; - case 12: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_cache_images: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &cache_images_))); - set_has_cache_images(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(106)) goto parse_root_folder; - break; - } - - // optional string root_folder = 13 [default = ""]; - case 13: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_root_folder: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_root_folder())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->root_folder().data(), this->root_folder().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void WindowDataParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 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::VerifyUTF8String( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 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::VerifyUTF8String( - this->crop_mode().data(), this->crop_mode().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 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::VerifyUTF8String( - this->root_folder().data(), this->root_folder().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 13, this->root_folder(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* WindowDataParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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::VerifyUTF8String( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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::VerifyUTF8String( - this->crop_mode().data(), this->crop_mode().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - 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::VerifyUTF8String( - this->root_folder().data(), this->root_folder().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 13, this->root_folder(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int WindowDataParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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] & (0xffu << (8 % 32))) { - // 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 (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void WindowDataParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const WindowDataParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void WindowDataParameter::MergeFrom(const WindowDataParameter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_source()) { - set_source(from.source()); - } - if (from.has_scale()) { - set_scale(from.scale()); - } - if (from.has_mean_file()) { - set_mean_file(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_crop_mode(from.crop_mode()); - } - if (from.has_cache_images()) { - set_cache_images(from.cache_images()); - } - if (from.has_root_folder()) { - set_root_folder(from.root_folder()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void WindowDataParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WindowDataParameter::CopyFrom(const WindowDataParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WindowDataParameter::IsInitialized() const { - - return true; -} - -void WindowDataParameter::Swap(WindowDataParameter* other) { - if (other != this) { - std::swap(source_, other->source_); - std::swap(scale_, other->scale_); - std::swap(mean_file_, 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_); - std::swap(crop_mode_, other->crop_mode_); - std::swap(cache_images_, other->cache_images_); - std::swap(root_folder_, other->root_folder_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* SPPParameter_PoolMethod_descriptor() { - protobuf_AssignDescriptorsOnce(); - return SPPParameter_PoolMethod_descriptor_; -} -bool SPPParameter_PoolMethod_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const SPPParameter_PoolMethod SPPParameter::MAX; -const SPPParameter_PoolMethod SPPParameter::AVE; -const SPPParameter_PoolMethod SPPParameter::STOCHASTIC; -const SPPParameter_PoolMethod SPPParameter::PoolMethod_MIN; -const SPPParameter_PoolMethod SPPParameter::PoolMethod_MAX; -const int SPPParameter::PoolMethod_ARRAYSIZE; -#endif // _MSC_VER -const ::google::protobuf::EnumDescriptor* SPPParameter_Engine_descriptor() { - protobuf_AssignDescriptorsOnce(); - return SPPParameter_Engine_descriptor_; -} -bool SPPParameter_Engine_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const SPPParameter_Engine SPPParameter::DEFAULT; -const SPPParameter_Engine SPPParameter::CAFFE; -const SPPParameter_Engine SPPParameter::CUDNN; -const SPPParameter_Engine SPPParameter::Engine_MIN; -const SPPParameter_Engine SPPParameter::Engine_MAX; -const int SPPParameter::Engine_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int SPPParameter::kPyramidHeightFieldNumber; -const int SPPParameter::kPoolFieldNumber; -const int SPPParameter::kEngineFieldNumber; -#endif // !_MSC_VER - -SPPParameter::SPPParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void SPPParameter::InitAsDefaultInstance() { -} - -SPPParameter::SPPParameter(const SPPParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void SPPParameter::SharedCtor() { - _cached_size_ = 0; - pyramid_height_ = 0u; - pool_ = 0; - engine_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -SPPParameter::~SPPParameter() { - SharedDtor(); -} - -void SPPParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -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() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -SPPParameter* SPPParameter::default_instance_ = NULL; - -SPPParameter* SPPParameter::New() const { - return new SPPParameter; -} - -void SPPParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - pyramid_height_ = 0u; - pool_ = 0; - engine_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SPPParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 pyramid_height = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &pyramid_height_))); - set_has_pyramid_height(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_pool; - break; - } - - // optional .caffe.SPPParameter.PoolMethod pool = 2 [default = MAX]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_pool: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::SPPParameter_PoolMethod_IsValid(value)) { - set_pool(static_cast< ::caffe::SPPParameter_PoolMethod >(value)); - } else { - mutable_unknown_fields()->AddVarint(2, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_engine; - break; - } - - // optional .caffe.SPPParameter.Engine engine = 6 [default = DEFAULT]; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_engine: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::SPPParameter_Engine_IsValid(value)) { - set_engine(static_cast< ::caffe::SPPParameter_Engine >(value)); - } else { - mutable_unknown_fields()->AddVarint(6, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void SPPParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional uint32 pyramid_height = 1; - if (has_pyramid_height()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->pyramid_height(), output); - } - - // optional .caffe.SPPParameter.PoolMethod pool = 2 [default = MAX]; - if (has_pool()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->pool(), output); - } - - // optional .caffe.SPPParameter.Engine engine = 6 [default = DEFAULT]; - if (has_engine()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 6, this->engine(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* SPPParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional uint32 pyramid_height = 1; - if (has_pyramid_height()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->pyramid_height(), target); - } - - // optional .caffe.SPPParameter.PoolMethod pool = 2 [default = MAX]; - if (has_pool()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->pool(), target); - } - - // optional .caffe.SPPParameter.Engine engine = 6 [default = DEFAULT]; - if (has_engine()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 6, this->engine(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int SPPParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 pyramid_height = 1; - if (has_pyramid_height()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->pyramid_height()); - } - - // optional .caffe.SPPParameter.PoolMethod pool = 2 [default = MAX]; - if (has_pool()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->pool()); - } - - // optional .caffe.SPPParameter.Engine engine = 6 [default = DEFAULT]; - if (has_engine()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SPPParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SPPParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SPPParameter::MergeFrom(const SPPParameter& from) { - GOOGLE_CHECK_NE(&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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SPPParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SPPParameter::CopyFrom(const SPPParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SPPParameter::IsInitialized() const { - - return true; -} - -void SPPParameter::Swap(SPPParameter* other) { - if (other != this) { - 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]); - _unknown_fields_.Swap(&other->_unknown_fields_); - 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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* V1LayerParameter_LayerType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return V1LayerParameter_LayerType_descriptor_; -} -bool V1LayerParameter_LayerType_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - case 25: - case 26: - case 27: - case 28: - case 29: - case 30: - case 31: - case 32: - case 33: - case 34: - case 35: - case 36: - case 37: - case 38: - case 39: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const V1LayerParameter_LayerType V1LayerParameter::NONE; -const V1LayerParameter_LayerType V1LayerParameter::ABSVAL; -const V1LayerParameter_LayerType V1LayerParameter::ACCURACY; -const V1LayerParameter_LayerType V1LayerParameter::ARGMAX; -const V1LayerParameter_LayerType V1LayerParameter::BNLL; -const V1LayerParameter_LayerType V1LayerParameter::CONCAT; -const V1LayerParameter_LayerType V1LayerParameter::CONTRASTIVE_LOSS; -const V1LayerParameter_LayerType V1LayerParameter::CONVOLUTION; -const V1LayerParameter_LayerType V1LayerParameter::DATA; -const V1LayerParameter_LayerType V1LayerParameter::DECONVOLUTION; -const V1LayerParameter_LayerType V1LayerParameter::DROPOUT; -const V1LayerParameter_LayerType V1LayerParameter::DUMMY_DATA; -const V1LayerParameter_LayerType V1LayerParameter::EUCLIDEAN_LOSS; -const V1LayerParameter_LayerType V1LayerParameter::ELTWISE; -const V1LayerParameter_LayerType V1LayerParameter::EXP; -const V1LayerParameter_LayerType V1LayerParameter::FLATTEN; -const V1LayerParameter_LayerType V1LayerParameter::HDF5_DATA; -const V1LayerParameter_LayerType V1LayerParameter::HDF5_OUTPUT; -const V1LayerParameter_LayerType V1LayerParameter::HINGE_LOSS; -const V1LayerParameter_LayerType V1LayerParameter::IM2COL; -const V1LayerParameter_LayerType V1LayerParameter::IMAGE_DATA; -const V1LayerParameter_LayerType V1LayerParameter::INFOGAIN_LOSS; -const V1LayerParameter_LayerType V1LayerParameter::INNER_PRODUCT; -const V1LayerParameter_LayerType V1LayerParameter::LRN; -const V1LayerParameter_LayerType V1LayerParameter::MEMORY_DATA; -const V1LayerParameter_LayerType V1LayerParameter::MULTINOMIAL_LOGISTIC_LOSS; -const V1LayerParameter_LayerType V1LayerParameter::MVN; -const V1LayerParameter_LayerType V1LayerParameter::POOLING; -const V1LayerParameter_LayerType V1LayerParameter::POWER; -const V1LayerParameter_LayerType V1LayerParameter::RELU; -const V1LayerParameter_LayerType V1LayerParameter::SIGMOID; -const V1LayerParameter_LayerType V1LayerParameter::SIGMOID_CROSS_ENTROPY_LOSS; -const V1LayerParameter_LayerType V1LayerParameter::SILENCE; -const V1LayerParameter_LayerType V1LayerParameter::SOFTMAX; -const V1LayerParameter_LayerType V1LayerParameter::SOFTMAX_LOSS; -const V1LayerParameter_LayerType V1LayerParameter::SPLIT; -const V1LayerParameter_LayerType V1LayerParameter::SLICE; -const V1LayerParameter_LayerType V1LayerParameter::TANH; -const V1LayerParameter_LayerType V1LayerParameter::WINDOW_DATA; -const V1LayerParameter_LayerType V1LayerParameter::THRESHOLD; -const V1LayerParameter_LayerType V1LayerParameter::LayerType_MIN; -const V1LayerParameter_LayerType V1LayerParameter::LayerType_MAX; -const int V1LayerParameter::LayerType_ARRAYSIZE; -#endif // _MSC_VER -const ::google::protobuf::EnumDescriptor* V1LayerParameter_DimCheckMode_descriptor() { - protobuf_AssignDescriptorsOnce(); - return V1LayerParameter_DimCheckMode_descriptor_; -} -bool V1LayerParameter_DimCheckMode_IsValid(int value) { - switch(value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const V1LayerParameter_DimCheckMode V1LayerParameter::STRICT; -const V1LayerParameter_DimCheckMode V1LayerParameter::PERMISSIVE; -const V1LayerParameter_DimCheckMode V1LayerParameter::DimCheckMode_MIN; -const V1LayerParameter_DimCheckMode V1LayerParameter::DimCheckMode_MAX; -const int V1LayerParameter::DimCheckMode_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int V1LayerParameter::kBottomFieldNumber; -const int V1LayerParameter::kTopFieldNumber; -const int V1LayerParameter::kNameFieldNumber; -const int V1LayerParameter::kIncludeFieldNumber; -const int V1LayerParameter::kExcludeFieldNumber; -const int V1LayerParameter::kTypeFieldNumber; -const int V1LayerParameter::kBlobsFieldNumber; -const int V1LayerParameter::kParamFieldNumber; -const int V1LayerParameter::kBlobShareModeFieldNumber; -const int V1LayerParameter::kBlobsLrFieldNumber; -const int V1LayerParameter::kWeightDecayFieldNumber; -const int V1LayerParameter::kLossWeightFieldNumber; -const int V1LayerParameter::kAccuracyParamFieldNumber; -const int V1LayerParameter::kArgmaxParamFieldNumber; -const int V1LayerParameter::kConcatParamFieldNumber; -const int V1LayerParameter::kContrastiveLossParamFieldNumber; -const int V1LayerParameter::kConvolutionParamFieldNumber; -const int V1LayerParameter::kDataParamFieldNumber; -const int V1LayerParameter::kDropoutParamFieldNumber; -const int V1LayerParameter::kDummyDataParamFieldNumber; -const int V1LayerParameter::kEltwiseParamFieldNumber; -const int V1LayerParameter::kExpParamFieldNumber; -const int V1LayerParameter::kHdf5DataParamFieldNumber; -const int V1LayerParameter::kHdf5OutputParamFieldNumber; -const int V1LayerParameter::kHingeLossParamFieldNumber; -const int V1LayerParameter::kImageDataParamFieldNumber; -const int V1LayerParameter::kInfogainLossParamFieldNumber; -const int V1LayerParameter::kInnerProductParamFieldNumber; -const int V1LayerParameter::kLrnParamFieldNumber; -const int V1LayerParameter::kMemoryDataParamFieldNumber; -const int V1LayerParameter::kMvnParamFieldNumber; -const int V1LayerParameter::kPoolingParamFieldNumber; -const int V1LayerParameter::kPowerParamFieldNumber; -const int V1LayerParameter::kReluParamFieldNumber; -const int V1LayerParameter::kSigmoidParamFieldNumber; -const int V1LayerParameter::kSoftmaxParamFieldNumber; -const int V1LayerParameter::kSliceParamFieldNumber; -const int V1LayerParameter::kTanhParamFieldNumber; -const int V1LayerParameter::kThresholdParamFieldNumber; -const int V1LayerParameter::kWindowDataParamFieldNumber; -const int V1LayerParameter::kTransformParamFieldNumber; -const int V1LayerParameter::kLossParamFieldNumber; -const int V1LayerParameter::kLayerFieldNumber; -#endif // !_MSC_VER - -V1LayerParameter::V1LayerParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void V1LayerParameter::InitAsDefaultInstance() { - accuracy_param_ = const_cast< ::caffe::AccuracyParameter*>(&::caffe::AccuracyParameter::default_instance()); - argmax_param_ = const_cast< ::caffe::ArgMaxParameter*>(&::caffe::ArgMaxParameter::default_instance()); - concat_param_ = const_cast< ::caffe::ConcatParameter*>(&::caffe::ConcatParameter::default_instance()); - contrastive_loss_param_ = const_cast< ::caffe::ContrastiveLossParameter*>(&::caffe::ContrastiveLossParameter::default_instance()); - convolution_param_ = const_cast< ::caffe::ConvolutionParameter*>(&::caffe::ConvolutionParameter::default_instance()); - data_param_ = const_cast< ::caffe::DataParameter*>(&::caffe::DataParameter::default_instance()); - dropout_param_ = const_cast< ::caffe::DropoutParameter*>(&::caffe::DropoutParameter::default_instance()); - dummy_data_param_ = const_cast< ::caffe::DummyDataParameter*>(&::caffe::DummyDataParameter::default_instance()); - eltwise_param_ = const_cast< ::caffe::EltwiseParameter*>(&::caffe::EltwiseParameter::default_instance()); - exp_param_ = const_cast< ::caffe::ExpParameter*>(&::caffe::ExpParameter::default_instance()); - hdf5_data_param_ = const_cast< ::caffe::HDF5DataParameter*>(&::caffe::HDF5DataParameter::default_instance()); - hdf5_output_param_ = const_cast< ::caffe::HDF5OutputParameter*>(&::caffe::HDF5OutputParameter::default_instance()); - hinge_loss_param_ = const_cast< ::caffe::HingeLossParameter*>(&::caffe::HingeLossParameter::default_instance()); - image_data_param_ = const_cast< ::caffe::ImageDataParameter*>(&::caffe::ImageDataParameter::default_instance()); - infogain_loss_param_ = const_cast< ::caffe::InfogainLossParameter*>(&::caffe::InfogainLossParameter::default_instance()); - inner_product_param_ = const_cast< ::caffe::InnerProductParameter*>(&::caffe::InnerProductParameter::default_instance()); - lrn_param_ = const_cast< ::caffe::LRNParameter*>(&::caffe::LRNParameter::default_instance()); - memory_data_param_ = const_cast< ::caffe::MemoryDataParameter*>(&::caffe::MemoryDataParameter::default_instance()); - mvn_param_ = const_cast< ::caffe::MVNParameter*>(&::caffe::MVNParameter::default_instance()); - pooling_param_ = const_cast< ::caffe::PoolingParameter*>(&::caffe::PoolingParameter::default_instance()); - power_param_ = const_cast< ::caffe::PowerParameter*>(&::caffe::PowerParameter::default_instance()); - relu_param_ = const_cast< ::caffe::ReLUParameter*>(&::caffe::ReLUParameter::default_instance()); - sigmoid_param_ = const_cast< ::caffe::SigmoidParameter*>(&::caffe::SigmoidParameter::default_instance()); - softmax_param_ = const_cast< ::caffe::SoftmaxParameter*>(&::caffe::SoftmaxParameter::default_instance()); - slice_param_ = const_cast< ::caffe::SliceParameter*>(&::caffe::SliceParameter::default_instance()); - tanh_param_ = const_cast< ::caffe::TanHParameter*>(&::caffe::TanHParameter::default_instance()); - threshold_param_ = const_cast< ::caffe::ThresholdParameter*>(&::caffe::ThresholdParameter::default_instance()); - window_data_param_ = const_cast< ::caffe::WindowDataParameter*>(&::caffe::WindowDataParameter::default_instance()); - transform_param_ = const_cast< ::caffe::TransformationParameter*>(&::caffe::TransformationParameter::default_instance()); - loss_param_ = const_cast< ::caffe::LossParameter*>(&::caffe::LossParameter::default_instance()); - layer_ = const_cast< ::caffe::V0LayerParameter*>(&::caffe::V0LayerParameter::default_instance()); -} - -V1LayerParameter::V1LayerParameter(const V1LayerParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void V1LayerParameter::SharedCtor() { - _cached_size_ = 0; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - type_ = 0; - 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; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -V1LayerParameter::~V1LayerParameter() { - SharedDtor(); -} - -void V1LayerParameter::SharedDtor() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (this != default_instance_) { - 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_; - } -} - -void V1LayerParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* V1LayerParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return V1LayerParameter_descriptor_; -} - -const V1LayerParameter& V1LayerParameter::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -V1LayerParameter* V1LayerParameter::default_instance_ = NULL; - -V1LayerParameter* V1LayerParameter::New() const { - return new V1LayerParameter; -} - -void V1LayerParameter::Clear() { - if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) { - if (has_name()) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - } - type_ = 0; - } - if (_has_bits_[12 / 32] & (0xffu << (12 % 32))) { - if (has_accuracy_param()) { - if (accuracy_param_ != NULL) accuracy_param_->::caffe::AccuracyParameter::Clear(); - } - if (has_argmax_param()) { - if (argmax_param_ != NULL) argmax_param_->::caffe::ArgMaxParameter::Clear(); - } - if (has_concat_param()) { - if (concat_param_ != NULL) concat_param_->::caffe::ConcatParameter::Clear(); - } - if (has_contrastive_loss_param()) { - if (contrastive_loss_param_ != NULL) contrastive_loss_param_->::caffe::ContrastiveLossParameter::Clear(); - } - } - if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { - if (has_convolution_param()) { - if (convolution_param_ != NULL) convolution_param_->::caffe::ConvolutionParameter::Clear(); - } - if (has_data_param()) { - if (data_param_ != NULL) data_param_->::caffe::DataParameter::Clear(); - } - if (has_dropout_param()) { - if (dropout_param_ != NULL) dropout_param_->::caffe::DropoutParameter::Clear(); - } - if (has_dummy_data_param()) { - if (dummy_data_param_ != NULL) dummy_data_param_->::caffe::DummyDataParameter::Clear(); - } - if (has_eltwise_param()) { - if (eltwise_param_ != NULL) eltwise_param_->::caffe::EltwiseParameter::Clear(); - } - if (has_exp_param()) { - if (exp_param_ != NULL) exp_param_->::caffe::ExpParameter::Clear(); - } - if (has_hdf5_data_param()) { - if (hdf5_data_param_ != NULL) hdf5_data_param_->::caffe::HDF5DataParameter::Clear(); - } - if (has_hdf5_output_param()) { - if (hdf5_output_param_ != NULL) hdf5_output_param_->::caffe::HDF5OutputParameter::Clear(); - } - } - if (_has_bits_[24 / 32] & (0xffu << (24 % 32))) { - if (has_hinge_loss_param()) { - if (hinge_loss_param_ != NULL) hinge_loss_param_->::caffe::HingeLossParameter::Clear(); - } - if (has_image_data_param()) { - if (image_data_param_ != NULL) image_data_param_->::caffe::ImageDataParameter::Clear(); - } - if (has_infogain_loss_param()) { - if (infogain_loss_param_ != NULL) infogain_loss_param_->::caffe::InfogainLossParameter::Clear(); - } - if (has_inner_product_param()) { - if (inner_product_param_ != NULL) inner_product_param_->::caffe::InnerProductParameter::Clear(); - } - if (has_lrn_param()) { - if (lrn_param_ != NULL) lrn_param_->::caffe::LRNParameter::Clear(); - } - if (has_memory_data_param()) { - if (memory_data_param_ != NULL) memory_data_param_->::caffe::MemoryDataParameter::Clear(); - } - if (has_mvn_param()) { - if (mvn_param_ != NULL) mvn_param_->::caffe::MVNParameter::Clear(); - } - if (has_pooling_param()) { - if (pooling_param_ != NULL) pooling_param_->::caffe::PoolingParameter::Clear(); - } - } - if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) { - if (has_power_param()) { - if (power_param_ != NULL) power_param_->::caffe::PowerParameter::Clear(); - } - if (has_relu_param()) { - if (relu_param_ != NULL) relu_param_->::caffe::ReLUParameter::Clear(); - } - if (has_sigmoid_param()) { - if (sigmoid_param_ != NULL) sigmoid_param_->::caffe::SigmoidParameter::Clear(); - } - if (has_softmax_param()) { - if (softmax_param_ != NULL) softmax_param_->::caffe::SoftmaxParameter::Clear(); - } - if (has_slice_param()) { - if (slice_param_ != NULL) slice_param_->::caffe::SliceParameter::Clear(); - } - if (has_tanh_param()) { - if (tanh_param_ != NULL) tanh_param_->::caffe::TanHParameter::Clear(); - } - if (has_threshold_param()) { - if (threshold_param_ != NULL) threshold_param_->::caffe::ThresholdParameter::Clear(); - } - if (has_window_data_param()) { - if (window_data_param_ != NULL) window_data_param_->::caffe::WindowDataParameter::Clear(); - } - } - if (_has_bits_[40 / 32] & (0xffu << (40 % 32))) { - if (has_transform_param()) { - if (transform_param_ != NULL) transform_param_->::caffe::TransformationParameter::Clear(); - } - if (has_loss_param()) { - if (loss_param_ != NULL) loss_param_->::caffe::LossParameter::Clear(); - } - if (has_layer()) { - if (layer_ != NULL) layer_->::caffe::V0LayerParameter::Clear(); - } - } - bottom_.Clear(); - top_.Clear(); - include_.Clear(); - exclude_.Clear(); - blobs_.Clear(); - param_.Clear(); - blob_share_mode_.Clear(); - blobs_lr_.Clear(); - weight_decay_.Clear(); - loss_weight_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool V1LayerParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .caffe.V0LayerParameter layer = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_layer())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_bottom; - break; - } - - // repeated string bottom = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_bottom: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_bottom())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->bottom(this->bottom_size() - 1).data(), - this->bottom(this->bottom_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_bottom; - if (input->ExpectTag(26)) goto parse_top; - break; - } - - // repeated string top = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_top: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_top())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->top(this->top_size() - 1).data(), - this->top(this->top_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_top; - if (input->ExpectTag(34)) goto parse_name; - break; - } - - // optional string name = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_type; - break; - } - - // optional .caffe.V1LayerParameter.LayerType type = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::V1LayerParameter_LayerType_IsValid(value)) { - set_type(static_cast< ::caffe::V1LayerParameter_LayerType >(value)); - } else { - mutable_unknown_fields()->AddVarint(5, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(50)) goto parse_blobs; - break; - } - - // repeated .caffe.BlobProto blobs = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_blobs: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_blobs())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(50)) goto parse_blobs; - if (input->ExpectTag(61)) goto parse_blobs_lr; - break; - } - - // repeated float blobs_lr = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_blobs_lr: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 61, input, this->mutable_blobs_lr()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_blobs_lr()))); - } else { - goto handle_uninterpreted; - } - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_weight_decay: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 69, input, this->mutable_weight_decay()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_weight_decay()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(69)) goto parse_weight_decay; - if (input->ExpectTag(74)) goto parse_concat_param; - break; - } - - // optional .caffe.ConcatParameter concat_param = 9; - case 9: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_concat_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_concat_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(82)) goto parse_convolution_param; - break; - } - - // optional .caffe.ConvolutionParameter convolution_param = 10; - case 10: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_convolution_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_convolution_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(90)) goto parse_data_param; - break; - } - - // optional .caffe.DataParameter data_param = 11; - case 11: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_data_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(98)) goto parse_dropout_param; - break; - } - - // optional .caffe.DropoutParameter dropout_param = 12; - case 12: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_dropout_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_dropout_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(106)) goto parse_hdf5_data_param; - break; - } - - // optional .caffe.HDF5DataParameter hdf5_data_param = 13; - case 13: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_hdf5_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_hdf5_data_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(114)) goto parse_hdf5_output_param; - break; - } - - // optional .caffe.HDF5OutputParameter hdf5_output_param = 14; - case 14: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_hdf5_output_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_hdf5_output_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(122)) goto parse_image_data_param; - break; - } - - // optional .caffe.ImageDataParameter image_data_param = 15; - case 15: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_image_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_image_data_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(130)) goto parse_infogain_loss_param; - break; - } - - // optional .caffe.InfogainLossParameter infogain_loss_param = 16; - case 16: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_infogain_loss_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_infogain_loss_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(138)) goto parse_inner_product_param; - break; - } - - // optional .caffe.InnerProductParameter inner_product_param = 17; - case 17: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_inner_product_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_inner_product_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(146)) goto parse_lrn_param; - break; - } - - // optional .caffe.LRNParameter lrn_param = 18; - case 18: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_lrn_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_lrn_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(154)) goto parse_pooling_param; - break; - } - - // optional .caffe.PoolingParameter pooling_param = 19; - case 19: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_pooling_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_pooling_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(162)) goto parse_window_data_param; - break; - } - - // optional .caffe.WindowDataParameter window_data_param = 20; - case 20: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_window_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_window_data_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(170)) goto parse_power_param; - break; - } - - // optional .caffe.PowerParameter power_param = 21; - case 21: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_power_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_power_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(178)) goto parse_memory_data_param; - break; - } - - // optional .caffe.MemoryDataParameter memory_data_param = 22; - case 22: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_memory_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_memory_data_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(186)) goto parse_argmax_param; - break; - } - - // optional .caffe.ArgMaxParameter argmax_param = 23; - case 23: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_argmax_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_argmax_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(194)) goto parse_eltwise_param; - break; - } - - // optional .caffe.EltwiseParameter eltwise_param = 24; - case 24: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_eltwise_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_eltwise_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(202)) goto parse_threshold_param; - break; - } - - // optional .caffe.ThresholdParameter threshold_param = 25; - case 25: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_threshold_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_threshold_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(210)) goto parse_dummy_data_param; - break; - } - - // optional .caffe.DummyDataParameter dummy_data_param = 26; - case 26: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_dummy_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_dummy_data_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(218)) goto parse_accuracy_param; - break; - } - - // optional .caffe.AccuracyParameter accuracy_param = 27; - case 27: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_accuracy_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_accuracy_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(234)) goto parse_hinge_loss_param; - break; - } - - // optional .caffe.HingeLossParameter hinge_loss_param = 29; - case 29: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_hinge_loss_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_hinge_loss_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(242)) goto parse_relu_param; - break; - } - - // optional .caffe.ReLUParameter relu_param = 30; - case 30: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_relu_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_relu_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(250)) goto parse_slice_param; - break; - } - - // optional .caffe.SliceParameter slice_param = 31; - case 31: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_slice_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_slice_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(258)) goto parse_include; - break; - } - - // repeated .caffe.NetStateRule include = 32; - case 32: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_include: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_include())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(258)) goto parse_include; - if (input->ExpectTag(266)) goto parse_exclude; - break; - } - - // repeated .caffe.NetStateRule exclude = 33; - case 33: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_exclude: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_exclude())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(266)) goto parse_exclude; - if (input->ExpectTag(274)) goto parse_mvn_param; - break; - } - - // optional .caffe.MVNParameter mvn_param = 34; - case 34: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_mvn_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_mvn_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(285)) goto parse_loss_weight; - break; - } - - // repeated float loss_weight = 35; - case 35: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_loss_weight: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 2, 285, input, this->mutable_loss_weight()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_loss_weight()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(285)) goto parse_loss_weight; - if (input->ExpectTag(290)) goto parse_transform_param; - break; - } - - // optional .caffe.TransformationParameter transform_param = 36; - case 36: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_transform_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_transform_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(298)) goto parse_tanh_param; - break; - } - - // optional .caffe.TanHParameter tanh_param = 37; - case 37: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_tanh_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_tanh_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(306)) goto parse_sigmoid_param; - break; - } - - // optional .caffe.SigmoidParameter sigmoid_param = 38; - case 38: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_sigmoid_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_sigmoid_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(314)) goto parse_softmax_param; - break; - } - - // optional .caffe.SoftmaxParameter softmax_param = 39; - case 39: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_softmax_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_softmax_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(322)) goto parse_contrastive_loss_param; - break; - } - - // optional .caffe.ContrastiveLossParameter contrastive_loss_param = 40; - case 40: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_contrastive_loss_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_contrastive_loss_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(330)) goto parse_exp_param; - break; - } - - // optional .caffe.ExpParameter exp_param = 41; - case 41: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_exp_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_exp_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(338)) goto parse_loss_param; - break; - } - - // optional .caffe.LossParameter loss_param = 42; - case 42: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_loss_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_loss_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(8010)) goto parse_param; - break; - } - - // repeated string param = 1001; - case 1001: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_param())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->param(this->param_size() - 1).data(), - this->param(this->param_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(8010)) goto parse_param; - if (input->ExpectTag(8016)) goto parse_blob_share_mode; - break; - } - - // repeated .caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002; - case 1002: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_blob_share_mode: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::V1LayerParameter_DimCheckMode_IsValid(value)) { - add_blob_share_mode(static_cast< ::caffe::V1LayerParameter_DimCheckMode >(value)); - } else { - mutable_unknown_fields()->AddVarint(1002, value); - } - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline( - input, - &::caffe::V1LayerParameter_DimCheckMode_IsValid, - this->mutable_blob_share_mode()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(8016)) goto parse_blob_share_mode; - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void V1LayerParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional .caffe.V0LayerParameter layer = 1; - if (has_layer()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->layer(), output); - } - - // repeated string bottom = 2; - for (int i = 0; i < this->bottom_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->bottom(i).data(), this->bottom(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->bottom(i), output); - } - - // repeated string top = 3; - for (int i = 0; i < this->top_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->top(i).data(), this->top(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 3, this->top(i), output); - } - - // optional string name = 4; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 4, this->name(), output); - } - - // optional .caffe.V1LayerParameter.LayerType type = 5; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->type(), output); - } - - // repeated .caffe.BlobProto blobs = 6; - for (int i = 0; i < this->blobs_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->blobs(i), output); - } - - // repeated float blobs_lr = 7; - for (int i = 0; i < this->blobs_lr_size(); 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++) { - ::google::protobuf::internal::WireFormatLite::WriteFloat( - 8, this->weight_decay(i), output); - } - - // optional .caffe.ConcatParameter concat_param = 9; - if (has_concat_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, this->concat_param(), output); - } - - // optional .caffe.ConvolutionParameter convolution_param = 10; - if (has_convolution_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, this->convolution_param(), output); - } - - // optional .caffe.DataParameter data_param = 11; - if (has_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 11, this->data_param(), output); - } - - // optional .caffe.DropoutParameter dropout_param = 12; - if (has_dropout_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 12, this->dropout_param(), output); - } - - // optional .caffe.HDF5DataParameter hdf5_data_param = 13; - if (has_hdf5_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 13, this->hdf5_data_param(), output); - } - - // optional .caffe.HDF5OutputParameter hdf5_output_param = 14; - if (has_hdf5_output_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 14, this->hdf5_output_param(), output); - } - - // optional .caffe.ImageDataParameter image_data_param = 15; - if (has_image_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 15, this->image_data_param(), output); - } - - // optional .caffe.InfogainLossParameter infogain_loss_param = 16; - if (has_infogain_loss_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 16, this->infogain_loss_param(), output); - } - - // optional .caffe.InnerProductParameter inner_product_param = 17; - if (has_inner_product_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 17, this->inner_product_param(), output); - } - - // optional .caffe.LRNParameter lrn_param = 18; - if (has_lrn_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 18, this->lrn_param(), output); - } - - // optional .caffe.PoolingParameter pooling_param = 19; - if (has_pooling_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 19, this->pooling_param(), output); - } - - // optional .caffe.WindowDataParameter window_data_param = 20; - if (has_window_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 20, this->window_data_param(), output); - } - - // optional .caffe.PowerParameter power_param = 21; - if (has_power_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 21, this->power_param(), output); - } - - // optional .caffe.MemoryDataParameter memory_data_param = 22; - if (has_memory_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 22, this->memory_data_param(), output); - } - - // optional .caffe.ArgMaxParameter argmax_param = 23; - if (has_argmax_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 23, this->argmax_param(), output); - } - - // optional .caffe.EltwiseParameter eltwise_param = 24; - if (has_eltwise_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 24, this->eltwise_param(), output); - } - - // optional .caffe.ThresholdParameter threshold_param = 25; - if (has_threshold_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 25, this->threshold_param(), output); - } - - // optional .caffe.DummyDataParameter dummy_data_param = 26; - if (has_dummy_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 26, this->dummy_data_param(), output); - } - - // optional .caffe.AccuracyParameter accuracy_param = 27; - if (has_accuracy_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 27, this->accuracy_param(), output); - } - - // optional .caffe.HingeLossParameter hinge_loss_param = 29; - if (has_hinge_loss_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 29, this->hinge_loss_param(), output); - } - - // optional .caffe.ReLUParameter relu_param = 30; - if (has_relu_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 30, this->relu_param(), output); - } - - // optional .caffe.SliceParameter slice_param = 31; - if (has_slice_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 31, this->slice_param(), output); - } - - // repeated .caffe.NetStateRule include = 32; - for (int i = 0; i < this->include_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 32, this->include(i), output); - } - - // repeated .caffe.NetStateRule exclude = 33; - for (int i = 0; i < this->exclude_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 33, this->exclude(i), output); - } - - // optional .caffe.MVNParameter mvn_param = 34; - if (has_mvn_param()) { - ::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++) { - ::google::protobuf::internal::WireFormatLite::WriteFloat( - 35, this->loss_weight(i), output); - } - - // optional .caffe.TransformationParameter transform_param = 36; - if (has_transform_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 36, this->transform_param(), output); - } - - // optional .caffe.TanHParameter tanh_param = 37; - if (has_tanh_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 37, this->tanh_param(), output); - } - - // optional .caffe.SigmoidParameter sigmoid_param = 38; - if (has_sigmoid_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 38, this->sigmoid_param(), output); - } - - // optional .caffe.SoftmaxParameter softmax_param = 39; - if (has_softmax_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 39, this->softmax_param(), output); - } - - // optional .caffe.ContrastiveLossParameter contrastive_loss_param = 40; - if (has_contrastive_loss_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 40, this->contrastive_loss_param(), output); - } - - // optional .caffe.ExpParameter exp_param = 41; - if (has_exp_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 41, this->exp_param(), output); - } - - // optional .caffe.LossParameter loss_param = 42; - if (has_loss_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 42, this->loss_param(), output); - } - - // repeated string param = 1001; - for (int i = 0; i < this->param_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->param(i).data(), this->param(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1001, this->param(i), output); - } - - // repeated .caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002; - for (int i = 0; i < this->blob_share_mode_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1002, this->blob_share_mode(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* V1LayerParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional .caffe.V0LayerParameter layer = 1; - if (has_layer()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->layer(), target); - } - - // repeated string bottom = 2; - for (int i = 0; i < this->bottom_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->bottom(i).data(), this->bottom(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(2, this->bottom(i), target); - } - - // repeated string top = 3; - for (int i = 0; i < this->top_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->top(i).data(), this->top(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(3, this->top(i), target); - } - - // optional string name = 4; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->name(), target); - } - - // optional .caffe.V1LayerParameter.LayerType type = 5; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 5, this->type(), target); - } - - // repeated .caffe.BlobProto blobs = 6; - for (int i = 0; i < this->blobs_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->blobs(i), 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); - } - - // 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); - } - - // optional .caffe.ConcatParameter concat_param = 9; - if (has_concat_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 9, this->concat_param(), target); - } - - // optional .caffe.ConvolutionParameter convolution_param = 10; - if (has_convolution_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 10, this->convolution_param(), target); - } - - // optional .caffe.DataParameter data_param = 11; - if (has_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 11, this->data_param(), target); - } - - // optional .caffe.DropoutParameter dropout_param = 12; - if (has_dropout_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 12, this->dropout_param(), target); - } - - // optional .caffe.HDF5DataParameter hdf5_data_param = 13; - if (has_hdf5_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 13, this->hdf5_data_param(), target); - } - - // optional .caffe.HDF5OutputParameter hdf5_output_param = 14; - if (has_hdf5_output_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 14, this->hdf5_output_param(), target); - } - - // optional .caffe.ImageDataParameter image_data_param = 15; - if (has_image_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 15, this->image_data_param(), target); - } - - // optional .caffe.InfogainLossParameter infogain_loss_param = 16; - if (has_infogain_loss_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 16, this->infogain_loss_param(), target); - } - - // optional .caffe.InnerProductParameter inner_product_param = 17; - if (has_inner_product_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 17, this->inner_product_param(), target); - } - - // optional .caffe.LRNParameter lrn_param = 18; - if (has_lrn_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 18, this->lrn_param(), target); - } - - // optional .caffe.PoolingParameter pooling_param = 19; - if (has_pooling_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 19, this->pooling_param(), target); - } - - // optional .caffe.WindowDataParameter window_data_param = 20; - if (has_window_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 20, this->window_data_param(), target); - } - - // optional .caffe.PowerParameter power_param = 21; - if (has_power_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 21, this->power_param(), target); - } - - // optional .caffe.MemoryDataParameter memory_data_param = 22; - if (has_memory_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 22, this->memory_data_param(), target); - } - - // optional .caffe.ArgMaxParameter argmax_param = 23; - if (has_argmax_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 23, this->argmax_param(), target); - } - - // optional .caffe.EltwiseParameter eltwise_param = 24; - if (has_eltwise_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 24, this->eltwise_param(), target); - } - - // optional .caffe.ThresholdParameter threshold_param = 25; - if (has_threshold_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 25, this->threshold_param(), target); - } - - // optional .caffe.DummyDataParameter dummy_data_param = 26; - if (has_dummy_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 26, this->dummy_data_param(), target); - } - - // optional .caffe.AccuracyParameter accuracy_param = 27; - if (has_accuracy_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 27, this->accuracy_param(), target); - } - - // optional .caffe.HingeLossParameter hinge_loss_param = 29; - if (has_hinge_loss_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 29, this->hinge_loss_param(), target); - } - - // optional .caffe.ReLUParameter relu_param = 30; - if (has_relu_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 30, this->relu_param(), target); - } - - // optional .caffe.SliceParameter slice_param = 31; - if (has_slice_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 31, this->slice_param(), target); - } - - // repeated .caffe.NetStateRule include = 32; - for (int i = 0; i < this->include_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 32, this->include(i), target); - } - - // repeated .caffe.NetStateRule exclude = 33; - for (int i = 0; i < this->exclude_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 33, this->exclude(i), target); - } - - // optional .caffe.MVNParameter mvn_param = 34; - if (has_mvn_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 34, this->mvn_param(), 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); - } - - // optional .caffe.TransformationParameter transform_param = 36; - if (has_transform_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 36, this->transform_param(), target); - } - - // optional .caffe.TanHParameter tanh_param = 37; - if (has_tanh_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 37, this->tanh_param(), target); - } - - // optional .caffe.SigmoidParameter sigmoid_param = 38; - if (has_sigmoid_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 38, this->sigmoid_param(), target); - } - - // optional .caffe.SoftmaxParameter softmax_param = 39; - if (has_softmax_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 39, this->softmax_param(), target); - } - - // optional .caffe.ContrastiveLossParameter contrastive_loss_param = 40; - if (has_contrastive_loss_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 40, this->contrastive_loss_param(), target); - } - - // optional .caffe.ExpParameter exp_param = 41; - if (has_exp_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 41, this->exp_param(), target); - } - - // optional .caffe.LossParameter loss_param = 42; - if (has_loss_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 42, this->loss_param(), target); - } - - // repeated string param = 1001; - for (int i = 0; i < this->param_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->param(i).data(), this->param(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1001, this->param(i), target); - } - - // repeated .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); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int V1LayerParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) { - // optional string name = 4; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional .caffe.V1LayerParameter.LayerType type = 5; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - } - if (_has_bits_[12 / 32] & (0xffu << (12 % 32))) { - // optional .caffe.AccuracyParameter accuracy_param = 27; - if (has_accuracy_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->accuracy_param()); - } - - // optional .caffe.ArgMaxParameter argmax_param = 23; - if (has_argmax_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->argmax_param()); - } - - // optional .caffe.ConcatParameter concat_param = 9; - if (has_concat_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->concat_param()); - } - - // optional .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] & (0xffu << (16 % 32))) { - // optional .caffe.ConvolutionParameter convolution_param = 10; - if (has_convolution_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->convolution_param()); - } - - // optional .caffe.DataParameter data_param = 11; - if (has_data_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->data_param()); - } - - // optional .caffe.DropoutParameter dropout_param = 12; - if (has_dropout_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->dropout_param()); - } - - // optional .caffe.DummyDataParameter dummy_data_param = 26; - if (has_dummy_data_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->dummy_data_param()); - } - - // optional .caffe.EltwiseParameter eltwise_param = 24; - if (has_eltwise_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->eltwise_param()); - } - - // optional .caffe.ExpParameter exp_param = 41; - if (has_exp_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->exp_param()); - } - - // optional .caffe.HDF5DataParameter hdf5_data_param = 13; - if (has_hdf5_data_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->hdf5_data_param()); - } - - // optional .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] & (0xffu << (24 % 32))) { - // optional .caffe.HingeLossParameter hinge_loss_param = 29; - if (has_hinge_loss_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->hinge_loss_param()); - } - - // optional .caffe.ImageDataParameter image_data_param = 15; - if (has_image_data_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->image_data_param()); - } - - // optional .caffe.InfogainLossParameter infogain_loss_param = 16; - if (has_infogain_loss_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->infogain_loss_param()); - } - - // optional .caffe.InnerProductParameter inner_product_param = 17; - if (has_inner_product_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->inner_product_param()); - } - - // optional .caffe.LRNParameter lrn_param = 18; - if (has_lrn_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->lrn_param()); - } - - // optional .caffe.MemoryDataParameter memory_data_param = 22; - if (has_memory_data_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->memory_data_param()); - } - - // optional .caffe.MVNParameter mvn_param = 34; - if (has_mvn_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->mvn_param()); - } - - // optional .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] & (0xffu << (32 % 32))) { - // optional .caffe.PowerParameter power_param = 21; - if (has_power_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->power_param()); - } - - // optional .caffe.ReLUParameter relu_param = 30; - if (has_relu_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->relu_param()); - } - - // optional .caffe.SigmoidParameter sigmoid_param = 38; - if (has_sigmoid_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->sigmoid_param()); - } - - // optional .caffe.SoftmaxParameter softmax_param = 39; - if (has_softmax_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->softmax_param()); - } - - // optional .caffe.SliceParameter slice_param = 31; - if (has_slice_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->slice_param()); - } - - // optional .caffe.TanHParameter tanh_param = 37; - if (has_tanh_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->tanh_param()); - } - - // optional .caffe.ThresholdParameter threshold_param = 25; - if (has_threshold_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->threshold_param()); - } - - // optional .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] & (0xffu << (40 % 32))) { - // optional .caffe.TransformationParameter transform_param = 36; - if (has_transform_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->transform_param()); - } - - // optional .caffe.LossParameter loss_param = 42; - if (has_loss_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->loss_param()); - } - - // optional .caffe.V0LayerParameter layer = 1; - if (has_layer()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->layer()); - } - - } - // repeated string bottom = 2; - total_size += 1 * 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 = 3; - total_size += 1 * this->top_size(); - for (int i = 0; i < this->top_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->top(i)); - } - - // repeated .caffe.NetStateRule include = 32; - total_size += 2 * this->include_size(); - for (int i = 0; i < this->include_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->include(i)); - } - - // repeated .caffe.NetStateRule exclude = 33; - total_size += 2 * this->exclude_size(); - for (int i = 0; i < this->exclude_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->exclude(i)); - } - - // repeated .caffe.BlobProto blobs = 6; - total_size += 1 * this->blobs_size(); - for (int i = 0; i < this->blobs_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->blobs(i)); - } - - // repeated string param = 1001; - total_size += 2 * this->param_size(); - for (int i = 0; i < this->param_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->param(i)); - } - - // repeated .caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002; - { - int data_size = 0; - for (int i = 0; i < this->blob_share_mode_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( - this->blob_share_mode(i)); - } - total_size += 2 * this->blob_share_mode_size() + data_size; - } - - // repeated float blobs_lr = 7; - { - int data_size = 0; - data_size = 4 * this->blobs_lr_size(); - total_size += 1 * this->blobs_lr_size() + data_size; - } - - // repeated float weight_decay = 8; - { - int data_size = 0; - data_size = 4 * this->weight_decay_size(); - total_size += 1 * this->weight_decay_size() + data_size; - } - - // repeated float loss_weight = 35; - { - int data_size = 0; - data_size = 4 * this->loss_weight_size(); - total_size += 2 * this->loss_weight_size() + data_size; - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void V1LayerParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const V1LayerParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void V1LayerParameter::MergeFrom(const V1LayerParameter& from) { - GOOGLE_CHECK_NE(&from, this); - bottom_.MergeFrom(from.bottom_); - top_.MergeFrom(from.top_); - include_.MergeFrom(from.include_); - exclude_.MergeFrom(from.exclude_); - blobs_.MergeFrom(from.blobs_); - param_.MergeFrom(from.param_); - blob_share_mode_.MergeFrom(from.blob_share_mode_); - blobs_lr_.MergeFrom(from.blobs_lr_); - weight_decay_.MergeFrom(from.weight_decay_); - loss_weight_.MergeFrom(from.loss_weight_); - if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) { - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_type()) { - set_type(from.type()); - } - } - if (from._has_bits_[12 / 32] & (0xffu << (12 % 32))) { - if (from.has_accuracy_param()) { - mutable_accuracy_param()->::caffe::AccuracyParameter::MergeFrom(from.accuracy_param()); - } - if (from.has_argmax_param()) { - mutable_argmax_param()->::caffe::ArgMaxParameter::MergeFrom(from.argmax_param()); - } - if (from.has_concat_param()) { - mutable_concat_param()->::caffe::ConcatParameter::MergeFrom(from.concat_param()); - } - if (from.has_contrastive_loss_param()) { - mutable_contrastive_loss_param()->::caffe::ContrastiveLossParameter::MergeFrom(from.contrastive_loss_param()); - } - } - if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) { - if (from.has_convolution_param()) { - mutable_convolution_param()->::caffe::ConvolutionParameter::MergeFrom(from.convolution_param()); - } - if (from.has_data_param()) { - mutable_data_param()->::caffe::DataParameter::MergeFrom(from.data_param()); - } - if (from.has_dropout_param()) { - mutable_dropout_param()->::caffe::DropoutParameter::MergeFrom(from.dropout_param()); - } - if (from.has_dummy_data_param()) { - mutable_dummy_data_param()->::caffe::DummyDataParameter::MergeFrom(from.dummy_data_param()); - } - if (from.has_eltwise_param()) { - mutable_eltwise_param()->::caffe::EltwiseParameter::MergeFrom(from.eltwise_param()); - } - if (from.has_exp_param()) { - mutable_exp_param()->::caffe::ExpParameter::MergeFrom(from.exp_param()); - } - if (from.has_hdf5_data_param()) { - mutable_hdf5_data_param()->::caffe::HDF5DataParameter::MergeFrom(from.hdf5_data_param()); - } - if (from.has_hdf5_output_param()) { - mutable_hdf5_output_param()->::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()->::caffe::HingeLossParameter::MergeFrom(from.hinge_loss_param()); - } - if (from.has_image_data_param()) { - mutable_image_data_param()->::caffe::ImageDataParameter::MergeFrom(from.image_data_param()); - } - if (from.has_infogain_loss_param()) { - mutable_infogain_loss_param()->::caffe::InfogainLossParameter::MergeFrom(from.infogain_loss_param()); - } - if (from.has_inner_product_param()) { - mutable_inner_product_param()->::caffe::InnerProductParameter::MergeFrom(from.inner_product_param()); - } - if (from.has_lrn_param()) { - mutable_lrn_param()->::caffe::LRNParameter::MergeFrom(from.lrn_param()); - } - if (from.has_memory_data_param()) { - mutable_memory_data_param()->::caffe::MemoryDataParameter::MergeFrom(from.memory_data_param()); - } - if (from.has_mvn_param()) { - mutable_mvn_param()->::caffe::MVNParameter::MergeFrom(from.mvn_param()); - } - if (from.has_pooling_param()) { - mutable_pooling_param()->::caffe::PoolingParameter::MergeFrom(from.pooling_param()); - } - } - if (from._has_bits_[32 / 32] & (0xffu << (32 % 32))) { - if (from.has_power_param()) { - mutable_power_param()->::caffe::PowerParameter::MergeFrom(from.power_param()); - } - if (from.has_relu_param()) { - mutable_relu_param()->::caffe::ReLUParameter::MergeFrom(from.relu_param()); - } - if (from.has_sigmoid_param()) { - mutable_sigmoid_param()->::caffe::SigmoidParameter::MergeFrom(from.sigmoid_param()); - } - if (from.has_softmax_param()) { - mutable_softmax_param()->::caffe::SoftmaxParameter::MergeFrom(from.softmax_param()); - } - if (from.has_slice_param()) { - mutable_slice_param()->::caffe::SliceParameter::MergeFrom(from.slice_param()); - } - if (from.has_tanh_param()) { - mutable_tanh_param()->::caffe::TanHParameter::MergeFrom(from.tanh_param()); - } - if (from.has_threshold_param()) { - mutable_threshold_param()->::caffe::ThresholdParameter::MergeFrom(from.threshold_param()); - } - if (from.has_window_data_param()) { - mutable_window_data_param()->::caffe::WindowDataParameter::MergeFrom(from.window_data_param()); - } - } - if (from._has_bits_[40 / 32] & (0xffu << (40 % 32))) { - if (from.has_transform_param()) { - mutable_transform_param()->::caffe::TransformationParameter::MergeFrom(from.transform_param()); - } - if (from.has_loss_param()) { - mutable_loss_param()->::caffe::LossParameter::MergeFrom(from.loss_param()); - } - if (from.has_layer()) { - mutable_layer()->::caffe::V0LayerParameter::MergeFrom(from.layer()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void V1LayerParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void V1LayerParameter::CopyFrom(const V1LayerParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool V1LayerParameter::IsInitialized() const { - - return true; -} - -void V1LayerParameter::Swap(V1LayerParameter* other) { - if (other != this) { - bottom_.Swap(&other->bottom_); - top_.Swap(&other->top_); - std::swap(name_, other->name_); - include_.Swap(&other->include_); - exclude_.Swap(&other->exclude_); - std::swap(type_, other->type_); - blobs_.Swap(&other->blobs_); - param_.Swap(&other->param_); - blob_share_mode_.Swap(&other->blob_share_mode_); - blobs_lr_.Swap(&other->blobs_lr_); - weight_decay_.Swap(&other->weight_decay_); - loss_weight_.Swap(&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]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::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; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* V0LayerParameter_PoolMethod_descriptor() { - protobuf_AssignDescriptorsOnce(); - return V0LayerParameter_PoolMethod_descriptor_; -} -bool V0LayerParameter_PoolMethod_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -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 // _MSC_VER -::std::string* V0LayerParameter::_default_det_crop_mode_ = NULL; -#ifndef _MSC_VER -const int V0LayerParameter::kNameFieldNumber; -const int V0LayerParameter::kTypeFieldNumber; -const int V0LayerParameter::kNumOutputFieldNumber; -const int V0LayerParameter::kBiastermFieldNumber; -const int V0LayerParameter::kWeightFillerFieldNumber; -const int V0LayerParameter::kBiasFillerFieldNumber; -const int V0LayerParameter::kPadFieldNumber; -const int V0LayerParameter::kKernelsizeFieldNumber; -const int V0LayerParameter::kGroupFieldNumber; -const int V0LayerParameter::kStrideFieldNumber; -const int V0LayerParameter::kPoolFieldNumber; -const int V0LayerParameter::kDropoutRatioFieldNumber; -const int V0LayerParameter::kLocalSizeFieldNumber; -const int V0LayerParameter::kAlphaFieldNumber; -const int V0LayerParameter::kBetaFieldNumber; -const int V0LayerParameter::kKFieldNumber; -const int V0LayerParameter::kSourceFieldNumber; -const int V0LayerParameter::kScaleFieldNumber; -const int V0LayerParameter::kMeanfileFieldNumber; -const int V0LayerParameter::kBatchsizeFieldNumber; -const int V0LayerParameter::kCropsizeFieldNumber; -const int V0LayerParameter::kMirrorFieldNumber; -const int V0LayerParameter::kBlobsFieldNumber; -const int V0LayerParameter::kBlobsLrFieldNumber; -const int V0LayerParameter::kWeightDecayFieldNumber; -const int V0LayerParameter::kRandSkipFieldNumber; -const int V0LayerParameter::kDetFgThresholdFieldNumber; -const int V0LayerParameter::kDetBgThresholdFieldNumber; -const int V0LayerParameter::kDetFgFractionFieldNumber; -const int V0LayerParameter::kDetContextPadFieldNumber; -const int V0LayerParameter::kDetCropModeFieldNumber; -const int V0LayerParameter::kNewNumFieldNumber; -const int V0LayerParameter::kNewChannelsFieldNumber; -const int V0LayerParameter::kNewHeightFieldNumber; -const int V0LayerParameter::kNewWidthFieldNumber; -const int V0LayerParameter::kShuffleImagesFieldNumber; -const int V0LayerParameter::kConcatDimFieldNumber; -const int V0LayerParameter::kHdf5OutputParamFieldNumber; -#endif // !_MSC_VER - -V0LayerParameter::V0LayerParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void V0LayerParameter::InitAsDefaultInstance() { - weight_filler_ = const_cast< ::caffe::FillerParameter*>(&::caffe::FillerParameter::default_instance()); - bias_filler_ = const_cast< ::caffe::FillerParameter*>(&::caffe::FillerParameter::default_instance()); - hdf5_output_param_ = const_cast< ::caffe::HDF5OutputParameter*>(&::caffe::HDF5OutputParameter::default_instance()); -} - -V0LayerParameter::V0LayerParameter(const V0LayerParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void V0LayerParameter::SharedCtor() { - _cached_size_ = 0; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - num_output_ = 0u; - biasterm_ = true; - weight_filler_ = NULL; - bias_filler_ = NULL; - pad_ = 0u; - kernelsize_ = 0u; - group_ = 1u; - stride_ = 1u; - pool_ = 0; - dropout_ratio_ = 0.5f; - local_size_ = 5u; - alpha_ = 1; - beta_ = 0.75f; - k_ = 1; - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - scale_ = 1; - meanfile_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - batchsize_ = 0u; - cropsize_ = 0u; - mirror_ = false; - rand_skip_ = 0u; - det_fg_threshold_ = 0.5f; - det_bg_threshold_ = 0.5f; - det_fg_fraction_ = 0.25f; - det_context_pad_ = 0u; - det_crop_mode_ = const_cast< ::std::string*>(_default_det_crop_mode_); - new_num_ = 0; - new_channels_ = 0; - new_height_ = 0; - new_width_ = 0; - shuffle_images_ = false; - concat_dim_ = 1u; - hdf5_output_param_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -V0LayerParameter::~V0LayerParameter() { - SharedDtor(); -} - -void V0LayerParameter::SharedDtor() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (type_ != &::google::protobuf::internal::kEmptyString) { - delete type_; - } - if (source_ != &::google::protobuf::internal::kEmptyString) { - delete source_; - } - if (meanfile_ != &::google::protobuf::internal::kEmptyString) { - delete meanfile_; - } - if (det_crop_mode_ != _default_det_crop_mode_) { - delete det_crop_mode_; - } - if (this != default_instance_) { - delete weight_filler_; - delete bias_filler_; - delete hdf5_output_param_; - } -} - -void V0LayerParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* V0LayerParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return V0LayerParameter_descriptor_; -} - -const V0LayerParameter& V0LayerParameter::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -V0LayerParameter* V0LayerParameter::default_instance_ = NULL; - -V0LayerParameter* V0LayerParameter::New() const { - return new V0LayerParameter; -} - -void V0LayerParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_name()) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - } - if (has_type()) { - if (type_ != &::google::protobuf::internal::kEmptyString) { - type_->clear(); - } - } - num_output_ = 0u; - biasterm_ = true; - if (has_weight_filler()) { - if (weight_filler_ != NULL) weight_filler_->::caffe::FillerParameter::Clear(); - } - if (has_bias_filler()) { - if (bias_filler_ != NULL) bias_filler_->::caffe::FillerParameter::Clear(); - } - pad_ = 0u; - kernelsize_ = 0u; - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - 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] & (0xffu << (16 % 32))) { - if (has_source()) { - if (source_ != &::google::protobuf::internal::kEmptyString) { - source_->clear(); - } - } - scale_ = 1; - if (has_meanfile()) { - if (meanfile_ != &::google::protobuf::internal::kEmptyString) { - meanfile_->clear(); - } - } - batchsize_ = 0u; - cropsize_ = 0u; - mirror_ = false; - } - if (_has_bits_[25 / 32] & (0xffu << (25 % 32))) { - rand_skip_ = 0u; - det_fg_threshold_ = 0.5f; - det_bg_threshold_ = 0.5f; - det_fg_fraction_ = 0.25f; - det_context_pad_ = 0u; - if (has_det_crop_mode()) { - if (det_crop_mode_ != _default_det_crop_mode_) { - det_crop_mode_->assign(*_default_det_crop_mode_); - } - } - new_num_ = 0; - } - if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) { - new_channels_ = 0; - new_height_ = 0; - new_width_ = 0; - shuffle_images_ = false; - concat_dim_ = 1u; - if (has_hdf5_output_param()) { - if (hdf5_output_param_ != NULL) hdf5_output_param_->::caffe::HDF5OutputParameter::Clear(); - } - } - blobs_.Clear(); - blobs_lr_.Clear(); - weight_decay_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool V0LayerParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string name = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_type; - break; - } - - // optional string type = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_type: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_type())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_num_output; - break; - } - - // optional uint32 num_output = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_num_output: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &num_output_))); - set_has_num_output(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_biasterm; - break; - } - - // optional bool biasterm = 4 [default = true]; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_biasterm: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &biasterm_))); - set_has_biasterm(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(42)) goto parse_weight_filler; - break; - } - - // optional .caffe.FillerParameter weight_filler = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_weight_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_weight_filler())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(50)) goto parse_bias_filler; - break; - } - - // optional .caffe.FillerParameter bias_filler = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_bias_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_bias_filler())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(56)) goto parse_pad; - break; - } - - // optional uint32 pad = 7 [default = 0]; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_pad: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &pad_))); - set_has_pad(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(64)) goto parse_kernelsize; - break; - } - - // optional uint32 kernelsize = 8; - case 8: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_kernelsize: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &kernelsize_))); - set_has_kernelsize(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(72)) goto parse_group; - break; - } - - // optional uint32 group = 9 [default = 1]; - case 9: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_group: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &group_))); - set_has_group(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(80)) goto parse_stride; - break; - } - - // optional uint32 stride = 10 [default = 1]; - case 10: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_stride: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &stride_))); - set_has_stride(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(88)) goto parse_pool; - break; - } - - // optional .caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX]; - case 11: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_pool: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::caffe::V0LayerParameter_PoolMethod_IsValid(value)) { - set_pool(static_cast< ::caffe::V0LayerParameter_PoolMethod >(value)); - } else { - mutable_unknown_fields()->AddVarint(11, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(101)) goto parse_dropout_ratio; - break; - } - - // optional float dropout_ratio = 12 [default = 0.5]; - case 12: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_dropout_ratio: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &dropout_ratio_))); - set_has_dropout_ratio(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(104)) goto parse_local_size; - break; - } - - // optional uint32 local_size = 13 [default = 5]; - case 13: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_local_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &local_size_))); - set_has_local_size(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(117)) goto parse_alpha; - break; - } - - // optional float alpha = 14 [default = 1]; - case 14: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_alpha: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &alpha_))); - set_has_alpha(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(125)) goto parse_beta; - break; - } - - // optional float beta = 15 [default = 0.75]; - case 15: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_beta: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &beta_))); - set_has_beta(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(130)) goto parse_source; - break; - } - - // optional string source = 16; - case 16: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_source: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_source())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(141)) goto parse_scale; - break; - } - - // optional float scale = 17 [default = 1]; - case 17: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_scale: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &scale_))); - set_has_scale(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(146)) goto parse_meanfile; - break; - } - - // optional string meanfile = 18; - case 18: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_meanfile: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_meanfile())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->meanfile().data(), this->meanfile().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(152)) goto parse_batchsize; - break; - } - - // optional uint32 batchsize = 19; - case 19: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_batchsize: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &batchsize_))); - set_has_batchsize(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(160)) goto parse_cropsize; - break; - } - - // optional uint32 cropsize = 20 [default = 0]; - case 20: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_cropsize: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &cropsize_))); - set_has_cropsize(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(168)) goto parse_mirror; - break; - } - - // optional bool mirror = 21 [default = false]; - case 21: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_mirror: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &mirror_))); - set_has_mirror(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(181)) goto parse_k; - break; - } - - // optional float k = 22 [default = 1]; - case 22: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_k: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &k_))); - set_has_k(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(402)) goto parse_blobs; - break; - } - - // repeated .caffe.BlobProto blobs = 50; - case 50: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_blobs: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_blobs())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(402)) goto parse_blobs; - if (input->ExpectTag(413)) goto parse_blobs_lr; - break; - } - - // repeated float blobs_lr = 51; - case 51: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_blobs_lr: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 2, 413, input, this->mutable_blobs_lr()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_blobs_lr()))); - } else { - goto handle_uninterpreted; - } - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_weight_decay: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 2, 421, input, this->mutable_weight_decay()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_weight_decay()))); - } else { - goto handle_uninterpreted; - } - 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 (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_rand_skip: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &rand_skip_))); - set_has_rand_skip(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(437)) goto parse_det_fg_threshold; - break; - } - - // optional float det_fg_threshold = 54 [default = 0.5]; - case 54: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_det_fg_threshold: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &det_fg_threshold_))); - set_has_det_fg_threshold(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(445)) goto parse_det_bg_threshold; - break; - } - - // optional float det_bg_threshold = 55 [default = 0.5]; - case 55: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_det_bg_threshold: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &det_bg_threshold_))); - set_has_det_bg_threshold(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(453)) goto parse_det_fg_fraction; - break; - } - - // optional float det_fg_fraction = 56 [default = 0.25]; - case 56: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { - parse_det_fg_fraction: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &det_fg_fraction_))); - set_has_det_fg_fraction(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(464)) goto parse_det_context_pad; - break; - } - - // optional uint32 det_context_pad = 58 [default = 0]; - case 58: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_det_context_pad: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &det_context_pad_))); - set_has_det_context_pad(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(474)) goto parse_det_crop_mode; - break; - } - - // optional string det_crop_mode = 59 [default = "warp"]; - case 59: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_det_crop_mode: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_det_crop_mode())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->det_crop_mode().data(), this->det_crop_mode().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(480)) goto parse_new_num; - break; - } - - // optional int32 new_num = 60 [default = 0]; - case 60: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_new_num: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &new_num_))); - set_has_new_num(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(488)) goto parse_new_channels; - break; - } - - // optional int32 new_channels = 61 [default = 0]; - case 61: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_new_channels: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &new_channels_))); - set_has_new_channels(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(496)) goto parse_new_height; - break; - } - - // optional int32 new_height = 62 [default = 0]; - case 62: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_new_height: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &new_height_))); - set_has_new_height(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(504)) goto parse_new_width; - break; - } - - // optional int32 new_width = 63 [default = 0]; - case 63: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_new_width: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &new_width_))); - set_has_new_width(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(512)) goto parse_shuffle_images; - break; - } - - // optional bool shuffle_images = 64 [default = false]; - case 64: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_shuffle_images: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &shuffle_images_))); - set_has_shuffle_images(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(520)) goto parse_concat_dim; - break; - } - - // optional uint32 concat_dim = 65 [default = 1]; - case 65: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_concat_dim: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &concat_dim_))); - set_has_concat_dim(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(8010)) goto parse_hdf5_output_param; - break; - } - - // optional .caffe.HDF5OutputParameter hdf5_output_param = 1001; - case 1001: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_hdf5_output_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_hdf5_output_param())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void V0LayerParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->name(), output); - } - - // optional string type = 2; - if (has_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->type(), output); - } - - // optional uint32 num_output = 3; - if (has_num_output()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->num_output(), output); - } - - // optional bool biasterm = 4 [default = true]; - if (has_biasterm()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->biasterm(), output); - } - - // optional .caffe.FillerParameter weight_filler = 5; - if (has_weight_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->weight_filler(), output); - } - - // optional .caffe.FillerParameter bias_filler = 6; - if (has_bias_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->bias_filler(), output); - } - - // optional uint32 pad = 7 [default = 0]; - if (has_pad()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->pad(), output); - } - - // optional uint32 kernelsize = 8; - if (has_kernelsize()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->kernelsize(), output); - } - - // optional uint32 group = 9 [default = 1]; - if (has_group()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->group(), output); - } - - // optional uint32 stride = 10 [default = 1]; - if (has_stride()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->stride(), output); - } - - // optional .caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX]; - if (has_pool()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 11, this->pool(), output); - } - - // optional float dropout_ratio = 12 [default = 0.5]; - if (has_dropout_ratio()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->dropout_ratio(), output); - } - - // optional uint32 local_size = 13 [default = 5]; - if (has_local_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->local_size(), output); - } - - // optional float alpha = 14 [default = 1]; - if (has_alpha()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(14, this->alpha(), output); - } - - // optional float beta = 15 [default = 0.75]; - if (has_beta()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(15, this->beta(), output); - } - - // optional string source = 16; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 16, this->source(), output); - } - - // optional float scale = 17 [default = 1]; - if (has_scale()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(17, this->scale(), output); - } - - // optional string meanfile = 18; - if (has_meanfile()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->meanfile().data(), this->meanfile().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 18, this->meanfile(), output); - } - - // optional uint32 batchsize = 19; - if (has_batchsize()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(19, this->batchsize(), output); - } - - // optional uint32 cropsize = 20 [default = 0]; - if (has_cropsize()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(20, this->cropsize(), output); - } - - // optional bool mirror = 21 [default = false]; - if (has_mirror()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(21, this->mirror(), output); - } - - // optional float k = 22 [default = 1]; - if (has_k()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(22, this->k(), output); - } - - // repeated .caffe.BlobProto blobs = 50; - for (int i = 0; i < this->blobs_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 50, this->blobs(i), output); - } - - // repeated float blobs_lr = 51; - for (int i = 0; i < this->blobs_lr_size(); 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++) { - ::google::protobuf::internal::WireFormatLite::WriteFloat( - 52, this->weight_decay(i), output); - } - - // optional uint32 rand_skip = 53 [default = 0]; - if (has_rand_skip()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(53, this->rand_skip(), output); - } - - // optional float det_fg_threshold = 54 [default = 0.5]; - if (has_det_fg_threshold()) { - ::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()) { - ::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()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(56, this->det_fg_fraction(), output); - } - - // optional uint32 det_context_pad = 58 [default = 0]; - if (has_det_context_pad()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(58, this->det_context_pad(), output); - } - - // optional string det_crop_mode = 59 [default = "warp"]; - if (has_det_crop_mode()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->det_crop_mode().data(), this->det_crop_mode().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 59, this->det_crop_mode(), output); - } - - // optional int32 new_num = 60 [default = 0]; - if (has_new_num()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(60, this->new_num(), output); - } - - // optional int32 new_channels = 61 [default = 0]; - if (has_new_channels()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(61, this->new_channels(), output); - } - - // optional int32 new_height = 62 [default = 0]; - if (has_new_height()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(62, this->new_height(), output); - } - - // optional int32 new_width = 63 [default = 0]; - if (has_new_width()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(63, this->new_width(), output); - } - - // optional bool shuffle_images = 64 [default = false]; - if (has_shuffle_images()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(64, this->shuffle_images(), output); - } - - // optional uint32 concat_dim = 65 [default = 1]; - if (has_concat_dim()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(65, this->concat_dim(), output); - } - - // optional .caffe.HDF5OutputParameter hdf5_output_param = 1001; - if (has_hdf5_output_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1001, this->hdf5_output_param(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* V0LayerParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // optional string type = 2; - if (has_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->type(), target); - } - - // optional uint32 num_output = 3; - if (has_num_output()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->num_output(), target); - } - - // optional bool biasterm = 4 [default = true]; - if (has_biasterm()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->biasterm(), target); - } - - // optional .caffe.FillerParameter weight_filler = 5; - if (has_weight_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->weight_filler(), target); - } - - // optional .caffe.FillerParameter bias_filler = 6; - if (has_bias_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->bias_filler(), target); - } - - // optional uint32 pad = 7 [default = 0]; - if (has_pad()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->pad(), target); - } - - // optional uint32 kernelsize = 8; - if (has_kernelsize()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->kernelsize(), target); - } - - // optional uint32 group = 9 [default = 1]; - if (has_group()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->group(), target); - } - - // optional uint32 stride = 10 [default = 1]; - if (has_stride()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->stride(), target); - } - - // optional .caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX]; - if (has_pool()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 11, this->pool(), target); - } - - // optional float dropout_ratio = 12 [default = 0.5]; - if (has_dropout_ratio()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->dropout_ratio(), target); - } - - // optional uint32 local_size = 13 [default = 5]; - if (has_local_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(13, this->local_size(), target); - } - - // optional float alpha = 14 [default = 1]; - if (has_alpha()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(14, this->alpha(), target); - } - - // optional float beta = 15 [default = 0.75]; - if (has_beta()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(15, this->beta(), target); - } - - // optional string source = 16; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 16, this->source(), target); - } - - // optional float scale = 17 [default = 1]; - if (has_scale()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(17, this->scale(), target); - } - - // optional string meanfile = 18; - if (has_meanfile()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->meanfile().data(), this->meanfile().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 18, this->meanfile(), target); - } - - // optional uint32 batchsize = 19; - if (has_batchsize()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(19, this->batchsize(), target); - } - - // optional uint32 cropsize = 20 [default = 0]; - if (has_cropsize()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(20, this->cropsize(), target); - } - - // optional bool mirror = 21 [default = false]; - if (has_mirror()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(21, this->mirror(), target); - } - - // optional float k = 22 [default = 1]; - if (has_k()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(22, this->k(), target); - } - - // repeated .caffe.BlobProto blobs = 50; - for (int i = 0; i < this->blobs_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 50, this->blobs(i), 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); - } - - // 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); - } - - // optional uint32 rand_skip = 53 [default = 0]; - if (has_rand_skip()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(53, this->rand_skip(), target); - } - - // optional float det_fg_threshold = 54 [default = 0.5]; - if (has_det_fg_threshold()) { - 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()) { - 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()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(56, this->det_fg_fraction(), target); - } - - // optional uint32 det_context_pad = 58 [default = 0]; - if (has_det_context_pad()) { - 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()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->det_crop_mode().data(), this->det_crop_mode().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 59, this->det_crop_mode(), target); - } - - // optional int32 new_num = 60 [default = 0]; - if (has_new_num()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(60, this->new_num(), target); - } - - // optional int32 new_channels = 61 [default = 0]; - if (has_new_channels()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(61, this->new_channels(), target); - } - - // optional int32 new_height = 62 [default = 0]; - if (has_new_height()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(62, this->new_height(), target); - } - - // optional int32 new_width = 63 [default = 0]; - if (has_new_width()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(63, this->new_width(), target); - } - - // optional bool shuffle_images = 64 [default = false]; - if (has_shuffle_images()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(64, this->shuffle_images(), target); - } - - // optional uint32 concat_dim = 65 [default = 1]; - if (has_concat_dim()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(65, this->concat_dim(), target); - } - - // optional .caffe.HDF5OutputParameter hdf5_output_param = 1001; - if (has_hdf5_output_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1001, this->hdf5_output_param(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int V0LayerParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // 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 uint32 num_output = 3; - if (has_num_output()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->num_output()); - } - - // optional bool biasterm = 4 [default = true]; - if (has_biasterm()) { - total_size += 1 + 1; - } - - // optional .caffe.FillerParameter weight_filler = 5; - if (has_weight_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->weight_filler()); - } - - // optional .caffe.FillerParameter bias_filler = 6; - if (has_bias_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->bias_filler()); - } - - // optional uint32 pad = 7 [default = 0]; - if (has_pad()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->pad()); - } - - // optional uint32 kernelsize = 8; - if (has_kernelsize()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->kernelsize()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional uint32 group = 9 [default = 1]; - if (has_group()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->group()); - } - - // optional uint32 stride = 10 [default = 1]; - if (has_stride()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->stride()); - } - - // optional .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; - } - - // optional uint32 local_size = 13 [default = 5]; - if (has_local_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->local_size()); - } - - // optional float alpha = 14 [default = 1]; - if (has_alpha()) { - total_size += 1 + 4; - } - - // optional float beta = 15 [default = 0.75]; - if (has_beta()) { - total_size += 1 + 4; - } - - // optional float k = 22 [default = 1]; - if (has_k()) { - total_size += 2 + 4; - } - - } - if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { - // 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] & (0xffu << (25 % 32))) { - // optional uint32 rand_skip = 53 [default = 0]; - if (has_rand_skip()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->rand_skip()); - } - - // optional float det_fg_threshold = 54 [default = 0.5]; - if (has_det_fg_threshold()) { - total_size += 2 + 4; - } - - // optional float det_bg_threshold = 55 [default = 0.5]; - if (has_det_bg_threshold()) { - total_size += 2 + 4; - } - - // optional float det_fg_fraction = 56 [default = 0.25]; - if (has_det_fg_fraction()) { - 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] & (0xffu << (32 % 32))) { - // 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 .caffe.HDF5OutputParameter hdf5_output_param = 1001; - if (has_hdf5_output_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->hdf5_output_param()); - } - - } - // repeated .caffe.BlobProto blobs = 50; - total_size += 2 * this->blobs_size(); - for (int i = 0; i < this->blobs_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->blobs(i)); - } - - // repeated float blobs_lr = 51; - { - int data_size = 0; - data_size = 4 * this->blobs_lr_size(); - total_size += 2 * this->blobs_lr_size() + data_size; - } - - // repeated float weight_decay = 52; - { - int data_size = 0; - data_size = 4 * this->weight_decay_size(); - total_size += 2 * this->weight_decay_size() + data_size; - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void V0LayerParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const V0LayerParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void V0LayerParameter::MergeFrom(const V0LayerParameter& from) { - GOOGLE_CHECK_NE(&from, this); - blobs_.MergeFrom(from.blobs_); - blobs_lr_.MergeFrom(from.blobs_lr_); - weight_decay_.MergeFrom(from.weight_decay_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_type()) { - set_type(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()->::caffe::FillerParameter::MergeFrom(from.weight_filler()); - } - if (from.has_bias_filler()) { - mutable_bias_filler()->::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()) { - set_source(from.source()); - } - if (from.has_scale()) { - set_scale(from.scale()); - } - if (from.has_meanfile()) { - set_meanfile(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()) { - set_det_crop_mode(from.det_crop_mode()); - } - if (from.has_new_num()) { - set_new_num(from.new_num()); - } - } - if (from._has_bits_[32 / 32] & (0xffu << (32 % 32))) { - if (from.has_new_channels()) { - set_new_channels(from.new_channels()); - } - 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()) { - mutable_hdf5_output_param()->::caffe::HDF5OutputParameter::MergeFrom(from.hdf5_output_param()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void V0LayerParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void V0LayerParameter::CopyFrom(const V0LayerParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool V0LayerParameter::IsInitialized() const { - - return true; -} - -void V0LayerParameter::Swap(V0LayerParameter* other) { - if (other != this) { - std::swap(name_, other->name_); - std::swap(type_, 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_); - std::swap(source_, other->source_); - std::swap(scale_, other->scale_); - std::swap(meanfile_, other->meanfile_); - std::swap(batchsize_, other->batchsize_); - std::swap(cropsize_, other->cropsize_); - std::swap(mirror_, other->mirror_); - blobs_.Swap(&other->blobs_); - blobs_lr_.Swap(&other->blobs_lr_); - weight_decay_.Swap(&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_); - std::swap(det_crop_mode_, 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]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::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; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int PReLUParameter::kFillerFieldNumber; -const int PReLUParameter::kChannelSharedFieldNumber; -#endif // !_MSC_VER - -PReLUParameter::PReLUParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void PReLUParameter::InitAsDefaultInstance() { - filler_ = const_cast< ::caffe::FillerParameter*>(&::caffe::FillerParameter::default_instance()); -} - -PReLUParameter::PReLUParameter(const PReLUParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void PReLUParameter::SharedCtor() { - _cached_size_ = 0; - filler_ = NULL; - channel_shared_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PReLUParameter::~PReLUParameter() { - SharedDtor(); -} - -void PReLUParameter::SharedDtor() { - if (this != default_instance_) { - delete filler_; - } -} - -void PReLUParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* PReLUParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return PReLUParameter_descriptor_; -} - -const PReLUParameter& PReLUParameter::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_caffe_2eproto(); - return *default_instance_; -} - -PReLUParameter* PReLUParameter::default_instance_ = NULL; - -PReLUParameter* PReLUParameter::New() const { - return new PReLUParameter; -} - -void PReLUParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_filler()) { - if (filler_ != NULL) filler_->::caffe::FillerParameter::Clear(); - } - channel_shared_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool PReLUParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .caffe.FillerParameter filler = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_filler())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_channel_shared; - break; - } - - // optional bool channel_shared = 2 [default = false]; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_channel_shared: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &channel_shared_))); - set_has_channel_shared(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void PReLUParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional .caffe.FillerParameter filler = 1; - if (has_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->filler(), output); - } - - // optional bool channel_shared = 2 [default = false]; - if (has_channel_shared()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->channel_shared(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* PReLUParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional .caffe.FillerParameter filler = 1; - if (has_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->filler(), target); - } - - // optional bool channel_shared = 2 [default = false]; - if (has_channel_shared()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->channel_shared(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int PReLUParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .caffe.FillerParameter filler = 1; - if (has_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->filler()); - } - - // optional bool channel_shared = 2 [default = false]; - if (has_channel_shared()) { - total_size += 1 + 1; - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PReLUParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const PReLUParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void PReLUParameter::MergeFrom(const PReLUParameter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_filler()) { - mutable_filler()->::caffe::FillerParameter::MergeFrom(from.filler()); - } - if (from.has_channel_shared()) { - set_channel_shared(from.channel_shared()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void PReLUParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PReLUParameter::CopyFrom(const PReLUParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PReLUParameter::IsInitialized() const { - - return true; -} - -void PReLUParameter::Swap(PReLUParameter* other) { - if (other != this) { - std::swap(filler_, other->filler_); - std::swap(channel_shared_, other->channel_shared_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::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; -} - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace caffe - -// @@protoc_insertion_point(global_scope) diff --git a/modules/dnn/src/caffe/compiled/caffe.pb.h b/modules/dnn/src/caffe/compiled/caffe.pb.h deleted file mode 100644 index f87875909..000000000 --- a/modules/dnn/src/caffe/compiled/caffe.pb.h +++ /dev/null @@ -1,20399 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: caffe.proto - -#ifndef PROTOBUF_caffe_2eproto__INCLUDED -#define PROTOBUF_caffe_2eproto__INCLUDED - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 2005000 -#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 2005000 < 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 -// @@protoc_insertion_point(includes) - -namespace caffe { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_caffe_2eproto(); -void protobuf_AssignDesc_caffe_2eproto(); -void protobuf_ShutdownFile_caffe_2eproto(); - -class BlobShape; -class BlobProto; -class BlobProtoVector; -class Datum; -class FillerParameter; -class NetParameter; -class SolverParameter; -class SolverState; -class NetState; -class NetStateRule; -class ParamSpec; -class LayerParameter; -class TransformationParameter; -class LossParameter; -class AccuracyParameter; -class ArgMaxParameter; -class ConcatParameter; -class ContrastiveLossParameter; -class ConvolutionParameter; -class DataParameter; -class DropoutParameter; -class DummyDataParameter; -class EltwiseParameter; -class ExpParameter; -class FlattenParameter; -class HDF5DataParameter; -class HDF5OutputParameter; -class HingeLossParameter; -class ImageDataParameter; -class InfogainLossParameter; -class InnerProductParameter; -class LogParameter; -class LRNParameter; -class MemoryDataParameter; -class MVNParameter; -class PoolingParameter; -class PowerParameter; -class PythonParameter; -class ReductionParameter; -class ReLUParameter; -class ReshapeParameter; -class SigmoidParameter; -class SliceParameter; -class SoftmaxParameter; -class TanHParameter; -class ThresholdParameter; -class WindowDataParameter; -class SPPParameter; -class V1LayerParameter; -class V0LayerParameter; -class PReLUParameter; - -enum FillerParameter_VarianceNorm { - FillerParameter_VarianceNorm_FAN_IN = 0, - FillerParameter_VarianceNorm_FAN_OUT = 1, - FillerParameter_VarianceNorm_AVERAGE = 2 -}; -bool FillerParameter_VarianceNorm_IsValid(int value); -const FillerParameter_VarianceNorm FillerParameter_VarianceNorm_VarianceNorm_MIN = FillerParameter_VarianceNorm_FAN_IN; -const FillerParameter_VarianceNorm FillerParameter_VarianceNorm_VarianceNorm_MAX = FillerParameter_VarianceNorm_AVERAGE; -const int FillerParameter_VarianceNorm_VarianceNorm_ARRAYSIZE = FillerParameter_VarianceNorm_VarianceNorm_MAX + 1; - -const ::google::protobuf::EnumDescriptor* FillerParameter_VarianceNorm_descriptor(); -inline const ::std::string& FillerParameter_VarianceNorm_Name(FillerParameter_VarianceNorm value) { - return ::google::protobuf::internal::NameOfEnum( - FillerParameter_VarianceNorm_descriptor(), value); -} -inline bool FillerParameter_VarianceNorm_Parse( - const ::std::string& name, FillerParameter_VarianceNorm* value) { - return ::google::protobuf::internal::ParseNamedEnum( - FillerParameter_VarianceNorm_descriptor(), name, value); -} -enum SolverParameter_SolverMode { - SolverParameter_SolverMode_CPU = 0, - SolverParameter_SolverMode_GPU = 1 -}; -bool SolverParameter_SolverMode_IsValid(int value); -const SolverParameter_SolverMode SolverParameter_SolverMode_SolverMode_MIN = SolverParameter_SolverMode_CPU; -const SolverParameter_SolverMode SolverParameter_SolverMode_SolverMode_MAX = SolverParameter_SolverMode_GPU; -const int SolverParameter_SolverMode_SolverMode_ARRAYSIZE = SolverParameter_SolverMode_SolverMode_MAX + 1; - -const ::google::protobuf::EnumDescriptor* SolverParameter_SolverMode_descriptor(); -inline const ::std::string& SolverParameter_SolverMode_Name(SolverParameter_SolverMode value) { - return ::google::protobuf::internal::NameOfEnum( - SolverParameter_SolverMode_descriptor(), value); -} -inline bool SolverParameter_SolverMode_Parse( - const ::std::string& name, SolverParameter_SolverMode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SolverParameter_SolverMode_descriptor(), name, value); -} -enum SolverParameter_SolverType { - SolverParameter_SolverType_SGD = 0, - SolverParameter_SolverType_NESTEROV = 1, - SolverParameter_SolverType_ADAGRAD = 2 -}; -bool SolverParameter_SolverType_IsValid(int value); -const SolverParameter_SolverType SolverParameter_SolverType_SolverType_MIN = SolverParameter_SolverType_SGD; -const SolverParameter_SolverType SolverParameter_SolverType_SolverType_MAX = SolverParameter_SolverType_ADAGRAD; -const int SolverParameter_SolverType_SolverType_ARRAYSIZE = SolverParameter_SolverType_SolverType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* SolverParameter_SolverType_descriptor(); -inline const ::std::string& SolverParameter_SolverType_Name(SolverParameter_SolverType value) { - return ::google::protobuf::internal::NameOfEnum( - SolverParameter_SolverType_descriptor(), value); -} -inline bool SolverParameter_SolverType_Parse( - const ::std::string& name, SolverParameter_SolverType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SolverParameter_SolverType_descriptor(), name, value); -} -enum ParamSpec_DimCheckMode { - ParamSpec_DimCheckMode_STRICT = 0, - ParamSpec_DimCheckMode_PERMISSIVE = 1 -}; -bool ParamSpec_DimCheckMode_IsValid(int value); -const ParamSpec_DimCheckMode ParamSpec_DimCheckMode_DimCheckMode_MIN = ParamSpec_DimCheckMode_STRICT; -const ParamSpec_DimCheckMode ParamSpec_DimCheckMode_DimCheckMode_MAX = ParamSpec_DimCheckMode_PERMISSIVE; -const int ParamSpec_DimCheckMode_DimCheckMode_ARRAYSIZE = ParamSpec_DimCheckMode_DimCheckMode_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ParamSpec_DimCheckMode_descriptor(); -inline const ::std::string& ParamSpec_DimCheckMode_Name(ParamSpec_DimCheckMode value) { - return ::google::protobuf::internal::NameOfEnum( - ParamSpec_DimCheckMode_descriptor(), value); -} -inline bool ParamSpec_DimCheckMode_Parse( - const ::std::string& name, ParamSpec_DimCheckMode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ParamSpec_DimCheckMode_descriptor(), name, value); -} -enum ConvolutionParameter_Engine { - ConvolutionParameter_Engine_DEFAULT = 0, - ConvolutionParameter_Engine_CAFFE = 1, - ConvolutionParameter_Engine_CUDNN = 2 -}; -bool ConvolutionParameter_Engine_IsValid(int value); -const ConvolutionParameter_Engine ConvolutionParameter_Engine_Engine_MIN = ConvolutionParameter_Engine_DEFAULT; -const ConvolutionParameter_Engine ConvolutionParameter_Engine_Engine_MAX = ConvolutionParameter_Engine_CUDNN; -const int ConvolutionParameter_Engine_Engine_ARRAYSIZE = ConvolutionParameter_Engine_Engine_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ConvolutionParameter_Engine_descriptor(); -inline const ::std::string& ConvolutionParameter_Engine_Name(ConvolutionParameter_Engine value) { - return ::google::protobuf::internal::NameOfEnum( - ConvolutionParameter_Engine_descriptor(), value); -} -inline bool ConvolutionParameter_Engine_Parse( - const ::std::string& name, ConvolutionParameter_Engine* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ConvolutionParameter_Engine_descriptor(), name, value); -} -enum DataParameter_DB { - DataParameter_DB_LEVELDB = 0, - DataParameter_DB_LMDB = 1 -}; -bool DataParameter_DB_IsValid(int value); -const DataParameter_DB DataParameter_DB_DB_MIN = DataParameter_DB_LEVELDB; -const DataParameter_DB DataParameter_DB_DB_MAX = DataParameter_DB_LMDB; -const int DataParameter_DB_DB_ARRAYSIZE = DataParameter_DB_DB_MAX + 1; - -const ::google::protobuf::EnumDescriptor* DataParameter_DB_descriptor(); -inline const ::std::string& DataParameter_DB_Name(DataParameter_DB value) { - return ::google::protobuf::internal::NameOfEnum( - DataParameter_DB_descriptor(), value); -} -inline bool DataParameter_DB_Parse( - const ::std::string& name, DataParameter_DB* value) { - return ::google::protobuf::internal::ParseNamedEnum( - DataParameter_DB_descriptor(), name, value); -} -enum EltwiseParameter_EltwiseOp { - EltwiseParameter_EltwiseOp_PROD = 0, - EltwiseParameter_EltwiseOp_SUM = 1, - EltwiseParameter_EltwiseOp_MAX = 2 -}; -bool EltwiseParameter_EltwiseOp_IsValid(int value); -const EltwiseParameter_EltwiseOp EltwiseParameter_EltwiseOp_EltwiseOp_MIN = EltwiseParameter_EltwiseOp_PROD; -const EltwiseParameter_EltwiseOp EltwiseParameter_EltwiseOp_EltwiseOp_MAX = EltwiseParameter_EltwiseOp_MAX; -const int EltwiseParameter_EltwiseOp_EltwiseOp_ARRAYSIZE = EltwiseParameter_EltwiseOp_EltwiseOp_MAX + 1; - -const ::google::protobuf::EnumDescriptor* EltwiseParameter_EltwiseOp_descriptor(); -inline const ::std::string& EltwiseParameter_EltwiseOp_Name(EltwiseParameter_EltwiseOp value) { - return ::google::protobuf::internal::NameOfEnum( - EltwiseParameter_EltwiseOp_descriptor(), value); -} -inline bool EltwiseParameter_EltwiseOp_Parse( - const ::std::string& name, EltwiseParameter_EltwiseOp* value) { - return ::google::protobuf::internal::ParseNamedEnum( - EltwiseParameter_EltwiseOp_descriptor(), name, value); -} -enum HingeLossParameter_Norm { - HingeLossParameter_Norm_L1 = 1, - HingeLossParameter_Norm_L2 = 2 -}; -bool HingeLossParameter_Norm_IsValid(int value); -const HingeLossParameter_Norm HingeLossParameter_Norm_Norm_MIN = HingeLossParameter_Norm_L1; -const HingeLossParameter_Norm HingeLossParameter_Norm_Norm_MAX = HingeLossParameter_Norm_L2; -const int HingeLossParameter_Norm_Norm_ARRAYSIZE = HingeLossParameter_Norm_Norm_MAX + 1; - -const ::google::protobuf::EnumDescriptor* HingeLossParameter_Norm_descriptor(); -inline const ::std::string& HingeLossParameter_Norm_Name(HingeLossParameter_Norm value) { - return ::google::protobuf::internal::NameOfEnum( - HingeLossParameter_Norm_descriptor(), value); -} -inline bool HingeLossParameter_Norm_Parse( - const ::std::string& name, HingeLossParameter_Norm* value) { - return ::google::protobuf::internal::ParseNamedEnum( - HingeLossParameter_Norm_descriptor(), name, value); -} -enum LRNParameter_NormRegion { - LRNParameter_NormRegion_ACROSS_CHANNELS = 0, - LRNParameter_NormRegion_WITHIN_CHANNEL = 1 -}; -bool LRNParameter_NormRegion_IsValid(int value); -const LRNParameter_NormRegion LRNParameter_NormRegion_NormRegion_MIN = LRNParameter_NormRegion_ACROSS_CHANNELS; -const LRNParameter_NormRegion LRNParameter_NormRegion_NormRegion_MAX = LRNParameter_NormRegion_WITHIN_CHANNEL; -const int LRNParameter_NormRegion_NormRegion_ARRAYSIZE = LRNParameter_NormRegion_NormRegion_MAX + 1; - -const ::google::protobuf::EnumDescriptor* LRNParameter_NormRegion_descriptor(); -inline const ::std::string& LRNParameter_NormRegion_Name(LRNParameter_NormRegion value) { - return ::google::protobuf::internal::NameOfEnum( - LRNParameter_NormRegion_descriptor(), value); -} -inline bool LRNParameter_NormRegion_Parse( - const ::std::string& name, LRNParameter_NormRegion* value) { - return ::google::protobuf::internal::ParseNamedEnum( - LRNParameter_NormRegion_descriptor(), name, value); -} -enum PoolingParameter_PoolMethod { - PoolingParameter_PoolMethod_MAX = 0, - PoolingParameter_PoolMethod_AVE = 1, - PoolingParameter_PoolMethod_STOCHASTIC = 2 -}; -bool PoolingParameter_PoolMethod_IsValid(int value); -const PoolingParameter_PoolMethod PoolingParameter_PoolMethod_PoolMethod_MIN = PoolingParameter_PoolMethod_MAX; -const PoolingParameter_PoolMethod PoolingParameter_PoolMethod_PoolMethod_MAX = PoolingParameter_PoolMethod_STOCHASTIC; -const int PoolingParameter_PoolMethod_PoolMethod_ARRAYSIZE = PoolingParameter_PoolMethod_PoolMethod_MAX + 1; - -const ::google::protobuf::EnumDescriptor* PoolingParameter_PoolMethod_descriptor(); -inline const ::std::string& PoolingParameter_PoolMethod_Name(PoolingParameter_PoolMethod value) { - return ::google::protobuf::internal::NameOfEnum( - PoolingParameter_PoolMethod_descriptor(), value); -} -inline bool PoolingParameter_PoolMethod_Parse( - const ::std::string& name, PoolingParameter_PoolMethod* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PoolingParameter_PoolMethod_descriptor(), name, value); -} -enum PoolingParameter_Engine { - PoolingParameter_Engine_DEFAULT = 0, - PoolingParameter_Engine_CAFFE = 1, - PoolingParameter_Engine_CUDNN = 2 -}; -bool PoolingParameter_Engine_IsValid(int value); -const PoolingParameter_Engine PoolingParameter_Engine_Engine_MIN = PoolingParameter_Engine_DEFAULT; -const PoolingParameter_Engine PoolingParameter_Engine_Engine_MAX = PoolingParameter_Engine_CUDNN; -const int PoolingParameter_Engine_Engine_ARRAYSIZE = PoolingParameter_Engine_Engine_MAX + 1; - -const ::google::protobuf::EnumDescriptor* PoolingParameter_Engine_descriptor(); -inline const ::std::string& PoolingParameter_Engine_Name(PoolingParameter_Engine value) { - return ::google::protobuf::internal::NameOfEnum( - PoolingParameter_Engine_descriptor(), value); -} -inline bool PoolingParameter_Engine_Parse( - const ::std::string& name, PoolingParameter_Engine* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PoolingParameter_Engine_descriptor(), name, value); -} -enum ReductionParameter_ReductionOp { - ReductionParameter_ReductionOp_SUM = 1, - ReductionParameter_ReductionOp_ASUM = 2, - ReductionParameter_ReductionOp_SUMSQ = 3, - ReductionParameter_ReductionOp_MEAN = 4 -}; -bool ReductionParameter_ReductionOp_IsValid(int value); -const ReductionParameter_ReductionOp ReductionParameter_ReductionOp_ReductionOp_MIN = ReductionParameter_ReductionOp_SUM; -const ReductionParameter_ReductionOp ReductionParameter_ReductionOp_ReductionOp_MAX = ReductionParameter_ReductionOp_MEAN; -const int ReductionParameter_ReductionOp_ReductionOp_ARRAYSIZE = ReductionParameter_ReductionOp_ReductionOp_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ReductionParameter_ReductionOp_descriptor(); -inline const ::std::string& ReductionParameter_ReductionOp_Name(ReductionParameter_ReductionOp value) { - return ::google::protobuf::internal::NameOfEnum( - ReductionParameter_ReductionOp_descriptor(), value); -} -inline bool ReductionParameter_ReductionOp_Parse( - const ::std::string& name, ReductionParameter_ReductionOp* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ReductionParameter_ReductionOp_descriptor(), name, value); -} -enum ReLUParameter_Engine { - ReLUParameter_Engine_DEFAULT = 0, - ReLUParameter_Engine_CAFFE = 1, - ReLUParameter_Engine_CUDNN = 2 -}; -bool ReLUParameter_Engine_IsValid(int value); -const ReLUParameter_Engine ReLUParameter_Engine_Engine_MIN = ReLUParameter_Engine_DEFAULT; -const ReLUParameter_Engine ReLUParameter_Engine_Engine_MAX = ReLUParameter_Engine_CUDNN; -const int ReLUParameter_Engine_Engine_ARRAYSIZE = ReLUParameter_Engine_Engine_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ReLUParameter_Engine_descriptor(); -inline const ::std::string& ReLUParameter_Engine_Name(ReLUParameter_Engine value) { - return ::google::protobuf::internal::NameOfEnum( - ReLUParameter_Engine_descriptor(), value); -} -inline bool ReLUParameter_Engine_Parse( - const ::std::string& name, ReLUParameter_Engine* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ReLUParameter_Engine_descriptor(), name, value); -} -enum SigmoidParameter_Engine { - SigmoidParameter_Engine_DEFAULT = 0, - SigmoidParameter_Engine_CAFFE = 1, - SigmoidParameter_Engine_CUDNN = 2 -}; -bool SigmoidParameter_Engine_IsValid(int value); -const SigmoidParameter_Engine SigmoidParameter_Engine_Engine_MIN = SigmoidParameter_Engine_DEFAULT; -const SigmoidParameter_Engine SigmoidParameter_Engine_Engine_MAX = SigmoidParameter_Engine_CUDNN; -const int SigmoidParameter_Engine_Engine_ARRAYSIZE = SigmoidParameter_Engine_Engine_MAX + 1; - -const ::google::protobuf::EnumDescriptor* SigmoidParameter_Engine_descriptor(); -inline const ::std::string& SigmoidParameter_Engine_Name(SigmoidParameter_Engine value) { - return ::google::protobuf::internal::NameOfEnum( - SigmoidParameter_Engine_descriptor(), value); -} -inline bool SigmoidParameter_Engine_Parse( - const ::std::string& name, SigmoidParameter_Engine* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SigmoidParameter_Engine_descriptor(), name, value); -} -enum SoftmaxParameter_Engine { - SoftmaxParameter_Engine_DEFAULT = 0, - SoftmaxParameter_Engine_CAFFE = 1, - SoftmaxParameter_Engine_CUDNN = 2 -}; -bool SoftmaxParameter_Engine_IsValid(int value); -const SoftmaxParameter_Engine SoftmaxParameter_Engine_Engine_MIN = SoftmaxParameter_Engine_DEFAULT; -const SoftmaxParameter_Engine SoftmaxParameter_Engine_Engine_MAX = SoftmaxParameter_Engine_CUDNN; -const int SoftmaxParameter_Engine_Engine_ARRAYSIZE = SoftmaxParameter_Engine_Engine_MAX + 1; - -const ::google::protobuf::EnumDescriptor* SoftmaxParameter_Engine_descriptor(); -inline const ::std::string& SoftmaxParameter_Engine_Name(SoftmaxParameter_Engine value) { - return ::google::protobuf::internal::NameOfEnum( - SoftmaxParameter_Engine_descriptor(), value); -} -inline bool SoftmaxParameter_Engine_Parse( - const ::std::string& name, SoftmaxParameter_Engine* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SoftmaxParameter_Engine_descriptor(), name, value); -} -enum TanHParameter_Engine { - TanHParameter_Engine_DEFAULT = 0, - TanHParameter_Engine_CAFFE = 1, - TanHParameter_Engine_CUDNN = 2 -}; -bool TanHParameter_Engine_IsValid(int value); -const TanHParameter_Engine TanHParameter_Engine_Engine_MIN = TanHParameter_Engine_DEFAULT; -const TanHParameter_Engine TanHParameter_Engine_Engine_MAX = TanHParameter_Engine_CUDNN; -const int TanHParameter_Engine_Engine_ARRAYSIZE = TanHParameter_Engine_Engine_MAX + 1; - -const ::google::protobuf::EnumDescriptor* TanHParameter_Engine_descriptor(); -inline const ::std::string& TanHParameter_Engine_Name(TanHParameter_Engine value) { - return ::google::protobuf::internal::NameOfEnum( - TanHParameter_Engine_descriptor(), value); -} -inline bool TanHParameter_Engine_Parse( - const ::std::string& name, TanHParameter_Engine* value) { - return ::google::protobuf::internal::ParseNamedEnum( - TanHParameter_Engine_descriptor(), name, value); -} -enum SPPParameter_PoolMethod { - SPPParameter_PoolMethod_MAX = 0, - SPPParameter_PoolMethod_AVE = 1, - SPPParameter_PoolMethod_STOCHASTIC = 2 -}; -bool SPPParameter_PoolMethod_IsValid(int value); -const SPPParameter_PoolMethod SPPParameter_PoolMethod_PoolMethod_MIN = SPPParameter_PoolMethod_MAX; -const SPPParameter_PoolMethod SPPParameter_PoolMethod_PoolMethod_MAX = SPPParameter_PoolMethod_STOCHASTIC; -const int SPPParameter_PoolMethod_PoolMethod_ARRAYSIZE = SPPParameter_PoolMethod_PoolMethod_MAX + 1; - -const ::google::protobuf::EnumDescriptor* SPPParameter_PoolMethod_descriptor(); -inline const ::std::string& SPPParameter_PoolMethod_Name(SPPParameter_PoolMethod value) { - return ::google::protobuf::internal::NameOfEnum( - SPPParameter_PoolMethod_descriptor(), value); -} -inline bool SPPParameter_PoolMethod_Parse( - const ::std::string& name, SPPParameter_PoolMethod* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SPPParameter_PoolMethod_descriptor(), name, value); -} -enum SPPParameter_Engine { - SPPParameter_Engine_DEFAULT = 0, - SPPParameter_Engine_CAFFE = 1, - SPPParameter_Engine_CUDNN = 2 -}; -bool SPPParameter_Engine_IsValid(int value); -const SPPParameter_Engine SPPParameter_Engine_Engine_MIN = SPPParameter_Engine_DEFAULT; -const SPPParameter_Engine SPPParameter_Engine_Engine_MAX = SPPParameter_Engine_CUDNN; -const int SPPParameter_Engine_Engine_ARRAYSIZE = SPPParameter_Engine_Engine_MAX + 1; - -const ::google::protobuf::EnumDescriptor* SPPParameter_Engine_descriptor(); -inline const ::std::string& SPPParameter_Engine_Name(SPPParameter_Engine value) { - return ::google::protobuf::internal::NameOfEnum( - SPPParameter_Engine_descriptor(), value); -} -inline bool SPPParameter_Engine_Parse( - const ::std::string& name, SPPParameter_Engine* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SPPParameter_Engine_descriptor(), name, value); -} -enum V1LayerParameter_LayerType { - V1LayerParameter_LayerType_NONE = 0, - V1LayerParameter_LayerType_ABSVAL = 35, - V1LayerParameter_LayerType_ACCURACY = 1, - V1LayerParameter_LayerType_ARGMAX = 30, - V1LayerParameter_LayerType_BNLL = 2, - V1LayerParameter_LayerType_CONCAT = 3, - V1LayerParameter_LayerType_CONTRASTIVE_LOSS = 37, - V1LayerParameter_LayerType_CONVOLUTION = 4, - V1LayerParameter_LayerType_DATA = 5, - V1LayerParameter_LayerType_DECONVOLUTION = 39, - V1LayerParameter_LayerType_DROPOUT = 6, - V1LayerParameter_LayerType_DUMMY_DATA = 32, - V1LayerParameter_LayerType_EUCLIDEAN_LOSS = 7, - V1LayerParameter_LayerType_ELTWISE = 25, - V1LayerParameter_LayerType_EXP = 38, - V1LayerParameter_LayerType_FLATTEN = 8, - V1LayerParameter_LayerType_HDF5_DATA = 9, - V1LayerParameter_LayerType_HDF5_OUTPUT = 10, - V1LayerParameter_LayerType_HINGE_LOSS = 28, - V1LayerParameter_LayerType_IM2COL = 11, - V1LayerParameter_LayerType_IMAGE_DATA = 12, - V1LayerParameter_LayerType_INFOGAIN_LOSS = 13, - V1LayerParameter_LayerType_INNER_PRODUCT = 14, - V1LayerParameter_LayerType_LRN = 15, - V1LayerParameter_LayerType_MEMORY_DATA = 29, - V1LayerParameter_LayerType_MULTINOMIAL_LOGISTIC_LOSS = 16, - V1LayerParameter_LayerType_MVN = 34, - V1LayerParameter_LayerType_POOLING = 17, - V1LayerParameter_LayerType_POWER = 26, - V1LayerParameter_LayerType_RELU = 18, - V1LayerParameter_LayerType_SIGMOID = 19, - V1LayerParameter_LayerType_SIGMOID_CROSS_ENTROPY_LOSS = 27, - V1LayerParameter_LayerType_SILENCE = 36, - V1LayerParameter_LayerType_SOFTMAX = 20, - V1LayerParameter_LayerType_SOFTMAX_LOSS = 21, - V1LayerParameter_LayerType_SPLIT = 22, - V1LayerParameter_LayerType_SLICE = 33, - V1LayerParameter_LayerType_TANH = 23, - V1LayerParameter_LayerType_WINDOW_DATA = 24, - V1LayerParameter_LayerType_THRESHOLD = 31 -}; -bool V1LayerParameter_LayerType_IsValid(int value); -const V1LayerParameter_LayerType V1LayerParameter_LayerType_LayerType_MIN = V1LayerParameter_LayerType_NONE; -const V1LayerParameter_LayerType V1LayerParameter_LayerType_LayerType_MAX = V1LayerParameter_LayerType_DECONVOLUTION; -const int V1LayerParameter_LayerType_LayerType_ARRAYSIZE = V1LayerParameter_LayerType_LayerType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* V1LayerParameter_LayerType_descriptor(); -inline const ::std::string& V1LayerParameter_LayerType_Name(V1LayerParameter_LayerType value) { - return ::google::protobuf::internal::NameOfEnum( - V1LayerParameter_LayerType_descriptor(), value); -} -inline bool V1LayerParameter_LayerType_Parse( - const ::std::string& name, V1LayerParameter_LayerType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - V1LayerParameter_LayerType_descriptor(), name, value); -} -enum V1LayerParameter_DimCheckMode { - V1LayerParameter_DimCheckMode_STRICT = 0, - V1LayerParameter_DimCheckMode_PERMISSIVE = 1 -}; -bool V1LayerParameter_DimCheckMode_IsValid(int value); -const V1LayerParameter_DimCheckMode V1LayerParameter_DimCheckMode_DimCheckMode_MIN = V1LayerParameter_DimCheckMode_STRICT; -const V1LayerParameter_DimCheckMode V1LayerParameter_DimCheckMode_DimCheckMode_MAX = V1LayerParameter_DimCheckMode_PERMISSIVE; -const int V1LayerParameter_DimCheckMode_DimCheckMode_ARRAYSIZE = V1LayerParameter_DimCheckMode_DimCheckMode_MAX + 1; - -const ::google::protobuf::EnumDescriptor* V1LayerParameter_DimCheckMode_descriptor(); -inline const ::std::string& V1LayerParameter_DimCheckMode_Name(V1LayerParameter_DimCheckMode value) { - return ::google::protobuf::internal::NameOfEnum( - V1LayerParameter_DimCheckMode_descriptor(), value); -} -inline bool V1LayerParameter_DimCheckMode_Parse( - const ::std::string& name, V1LayerParameter_DimCheckMode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - V1LayerParameter_DimCheckMode_descriptor(), name, value); -} -enum V0LayerParameter_PoolMethod { - V0LayerParameter_PoolMethod_MAX = 0, - V0LayerParameter_PoolMethod_AVE = 1, - V0LayerParameter_PoolMethod_STOCHASTIC = 2 -}; -bool V0LayerParameter_PoolMethod_IsValid(int value); -const V0LayerParameter_PoolMethod V0LayerParameter_PoolMethod_PoolMethod_MIN = V0LayerParameter_PoolMethod_MAX; -const V0LayerParameter_PoolMethod V0LayerParameter_PoolMethod_PoolMethod_MAX = V0LayerParameter_PoolMethod_STOCHASTIC; -const int V0LayerParameter_PoolMethod_PoolMethod_ARRAYSIZE = V0LayerParameter_PoolMethod_PoolMethod_MAX + 1; - -const ::google::protobuf::EnumDescriptor* V0LayerParameter_PoolMethod_descriptor(); -inline const ::std::string& V0LayerParameter_PoolMethod_Name(V0LayerParameter_PoolMethod value) { - return ::google::protobuf::internal::NameOfEnum( - V0LayerParameter_PoolMethod_descriptor(), value); -} -inline bool V0LayerParameter_PoolMethod_Parse( - const ::std::string& name, V0LayerParameter_PoolMethod* value) { - return ::google::protobuf::internal::ParseNamedEnum( - V0LayerParameter_PoolMethod_descriptor(), name, value); -} -enum Phase { - TRAIN = 0, - TEST = 1 -}; -bool Phase_IsValid(int value); -const Phase Phase_MIN = TRAIN; -const Phase Phase_MAX = TEST; -const int Phase_ARRAYSIZE = Phase_MAX + 1; - -const ::google::protobuf::EnumDescriptor* Phase_descriptor(); -inline const ::std::string& Phase_Name(Phase value) { - return ::google::protobuf::internal::NameOfEnum( - Phase_descriptor(), value); -} -inline bool Phase_Parse( - const ::std::string& name, Phase* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Phase_descriptor(), name, value); -} -// =================================================================== - -class BlobShape : public ::google::protobuf::Message { - public: - BlobShape(); - virtual ~BlobShape(); - - BlobShape(const BlobShape& from); - - inline BlobShape& operator=(const BlobShape& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const BlobShape& default_instance(); - - void Swap(BlobShape* other); - - // implements Message ---------------------------------------------- - - BlobShape* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BlobShape& from); - void MergeFrom(const BlobShape& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 dim = 1 [packed = true]; - inline int dim_size() const; - inline void clear_dim(); - static const int kDimFieldNumber = 1; - inline ::google::protobuf::int64 dim(int index) const; - inline void set_dim(int index, ::google::protobuf::int64 value); - inline void add_dim(::google::protobuf::int64 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - dim() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_dim(); - - // @@protoc_insertion_point(class_scope:caffe.BlobShape) - private: - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > dim_; - mutable int _dim_cached_byte_size_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static BlobShape* default_instance_; -}; -// ------------------------------------------------------------------- - -class BlobProto : public ::google::protobuf::Message { - public: - BlobProto(); - virtual ~BlobProto(); - - BlobProto(const BlobProto& from); - - inline BlobProto& operator=(const BlobProto& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const BlobProto& default_instance(); - - void Swap(BlobProto* other); - - // implements Message ---------------------------------------------- - - BlobProto* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BlobProto& from); - void MergeFrom(const BlobProto& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .caffe.BlobShape shape = 7; - inline bool has_shape() const; - inline void clear_shape(); - static const int kShapeFieldNumber = 7; - inline const ::caffe::BlobShape& shape() const; - inline ::caffe::BlobShape* mutable_shape(); - inline ::caffe::BlobShape* release_shape(); - inline void set_allocated_shape(::caffe::BlobShape* shape); - - // repeated float data = 5 [packed = true]; - inline int data_size() const; - inline void clear_data(); - static const int kDataFieldNumber = 5; - inline float data(int index) const; - inline void set_data(int index, float value); - inline void add_data(float value); - inline const ::google::protobuf::RepeatedField< float >& - data() const; - inline ::google::protobuf::RepeatedField< float >* - mutable_data(); - - // repeated float diff = 6 [packed = true]; - inline int diff_size() const; - inline void clear_diff(); - static const int kDiffFieldNumber = 6; - inline float diff(int index) const; - inline void set_diff(int index, float value); - inline void add_diff(float value); - inline const ::google::protobuf::RepeatedField< float >& - diff() const; - inline ::google::protobuf::RepeatedField< float >* - mutable_diff(); - - // optional int32 num = 1 [default = 0]; - inline bool has_num() const; - inline void clear_num(); - static const int kNumFieldNumber = 1; - inline ::google::protobuf::int32 num() const; - inline void set_num(::google::protobuf::int32 value); - - // optional int32 channels = 2 [default = 0]; - inline bool has_channels() const; - inline void clear_channels(); - static const int kChannelsFieldNumber = 2; - inline ::google::protobuf::int32 channels() const; - inline void set_channels(::google::protobuf::int32 value); - - // optional int32 height = 3 [default = 0]; - inline bool has_height() const; - inline void clear_height(); - static const int kHeightFieldNumber = 3; - inline ::google::protobuf::int32 height() const; - inline void set_height(::google::protobuf::int32 value); - - // optional int32 width = 4 [default = 0]; - inline bool has_width() const; - inline void clear_width(); - static const int kWidthFieldNumber = 4; - inline ::google::protobuf::int32 width() const; - inline void set_width(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:caffe.BlobProto) - private: - inline void set_has_shape(); - inline void clear_has_shape(); - 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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::caffe::BlobShape* shape_; - ::google::protobuf::RepeatedField< float > data_; - mutable int _data_cached_byte_size_; - ::google::protobuf::RepeatedField< float > diff_; - mutable int _diff_cached_byte_size_; - ::google::protobuf::int32 num_; - ::google::protobuf::int32 channels_; - ::google::protobuf::int32 height_; - ::google::protobuf::int32 width_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static BlobProto* default_instance_; -}; -// ------------------------------------------------------------------- - -class BlobProtoVector : public ::google::protobuf::Message { - public: - BlobProtoVector(); - virtual ~BlobProtoVector(); - - BlobProtoVector(const BlobProtoVector& from); - - inline BlobProtoVector& operator=(const BlobProtoVector& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const BlobProtoVector& default_instance(); - - void Swap(BlobProtoVector* other); - - // implements Message ---------------------------------------------- - - BlobProtoVector* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BlobProtoVector& from); - void MergeFrom(const BlobProtoVector& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .caffe.BlobProto blobs = 1; - inline int blobs_size() const; - inline void clear_blobs(); - static const int kBlobsFieldNumber = 1; - inline const ::caffe::BlobProto& blobs(int index) const; - inline ::caffe::BlobProto* mutable_blobs(int index); - inline ::caffe::BlobProto* add_blobs(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >& - blobs() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >* - mutable_blobs(); - - // @@protoc_insertion_point(class_scope:caffe.BlobProtoVector) - private: - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto > blobs_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static BlobProtoVector* default_instance_; -}; -// ------------------------------------------------------------------- - -class Datum : public ::google::protobuf::Message { - public: - Datum(); - virtual ~Datum(); - - Datum(const Datum& from); - - inline Datum& operator=(const Datum& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const Datum& default_instance(); - - void Swap(Datum* other); - - // implements Message ---------------------------------------------- - - Datum* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Datum& from); - void MergeFrom(const Datum& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int32 channels = 1; - inline bool has_channels() const; - inline void clear_channels(); - static const int kChannelsFieldNumber = 1; - inline ::google::protobuf::int32 channels() const; - inline void set_channels(::google::protobuf::int32 value); - - // optional int32 height = 2; - inline bool has_height() const; - inline void clear_height(); - static const int kHeightFieldNumber = 2; - inline ::google::protobuf::int32 height() const; - inline void set_height(::google::protobuf::int32 value); - - // optional int32 width = 3; - inline bool has_width() const; - inline void clear_width(); - static const int kWidthFieldNumber = 3; - inline ::google::protobuf::int32 width() const; - inline void set_width(::google::protobuf::int32 value); - - // optional bytes data = 4; - inline bool has_data() const; - inline void clear_data(); - static const int kDataFieldNumber = 4; - inline const ::std::string& data() const; - inline void set_data(const ::std::string& value); - inline void set_data(const char* value); - inline void set_data(const void* value, size_t size); - inline ::std::string* mutable_data(); - inline ::std::string* release_data(); - inline void set_allocated_data(::std::string* data); - - // optional int32 label = 5; - inline bool has_label() const; - inline void clear_label(); - static const int kLabelFieldNumber = 5; - inline ::google::protobuf::int32 label() const; - inline void set_label(::google::protobuf::int32 value); - - // repeated float float_data = 6; - inline int float_data_size() const; - inline void clear_float_data(); - static const int kFloatDataFieldNumber = 6; - inline float float_data(int index) const; - inline void set_float_data(int index, float value); - inline void add_float_data(float value); - inline const ::google::protobuf::RepeatedField< float >& - float_data() const; - inline ::google::protobuf::RepeatedField< float >* - mutable_float_data(); - - // optional bool encoded = 7 [default = false]; - inline bool has_encoded() const; - inline void clear_encoded(); - static const int kEncodedFieldNumber = 7; - inline bool encoded() const; - inline void set_encoded(bool value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::int32 channels_; - ::google::protobuf::int32 height_; - ::std::string* data_; - ::google::protobuf::int32 width_; - ::google::protobuf::int32 label_; - ::google::protobuf::RepeatedField< float > float_data_; - bool encoded_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static Datum* default_instance_; -}; -// ------------------------------------------------------------------- - -class FillerParameter : public ::google::protobuf::Message { - public: - FillerParameter(); - virtual ~FillerParameter(); - - FillerParameter(const FillerParameter& from); - - inline FillerParameter& operator=(const FillerParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const FillerParameter& default_instance(); - - void Swap(FillerParameter* other); - - // implements Message ---------------------------------------------- - - FillerParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FillerParameter& from); - void MergeFrom(const FillerParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef FillerParameter_VarianceNorm VarianceNorm; - static const VarianceNorm FAN_IN = FillerParameter_VarianceNorm_FAN_IN; - static const VarianceNorm FAN_OUT = FillerParameter_VarianceNorm_FAN_OUT; - static const VarianceNorm AVERAGE = FillerParameter_VarianceNorm_AVERAGE; - static inline bool VarianceNorm_IsValid(int value) { - return FillerParameter_VarianceNorm_IsValid(value); - } - static const VarianceNorm VarianceNorm_MIN = - FillerParameter_VarianceNorm_VarianceNorm_MIN; - static const VarianceNorm VarianceNorm_MAX = - FillerParameter_VarianceNorm_VarianceNorm_MAX; - static const int VarianceNorm_ARRAYSIZE = - FillerParameter_VarianceNorm_VarianceNorm_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - VarianceNorm_descriptor() { - return FillerParameter_VarianceNorm_descriptor(); - } - static inline const ::std::string& VarianceNorm_Name(VarianceNorm value) { - return FillerParameter_VarianceNorm_Name(value); - } - static inline bool VarianceNorm_Parse(const ::std::string& name, - VarianceNorm* value) { - return FillerParameter_VarianceNorm_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // optional string type = 1 [default = "constant"]; - inline bool has_type() const; - inline void clear_type(); - static const int kTypeFieldNumber = 1; - inline const ::std::string& type() const; - inline void set_type(const ::std::string& value); - inline void set_type(const char* value); - inline void set_type(const char* value, size_t size); - inline ::std::string* mutable_type(); - inline ::std::string* release_type(); - inline void set_allocated_type(::std::string* type); - - // optional float value = 2 [default = 0]; - inline bool has_value() const; - inline void clear_value(); - static const int kValueFieldNumber = 2; - inline float value() const; - inline void set_value(float value); - - // optional float min = 3 [default = 0]; - inline bool has_min() const; - inline void clear_min(); - static const int kMinFieldNumber = 3; - inline float min() const; - inline void set_min(float value); - - // optional float max = 4 [default = 1]; - inline bool has_max() const; - inline void clear_max(); - static const int kMaxFieldNumber = 4; - inline float max() const; - inline void set_max(float value); - - // optional float mean = 5 [default = 0]; - inline bool has_mean() const; - inline void clear_mean(); - static const int kMeanFieldNumber = 5; - inline float mean() const; - inline void set_mean(float value); - - // optional float std = 6 [default = 1]; - inline bool has_std() const; - inline void clear_std(); - static const int kStdFieldNumber = 6; - inline float std() const; - inline void set_std(float value); - - // optional int32 sparse = 7 [default = -1]; - inline bool has_sparse() const; - inline void clear_sparse(); - static const int kSparseFieldNumber = 7; - inline ::google::protobuf::int32 sparse() const; - inline void set_sparse(::google::protobuf::int32 value); - - // optional .caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN]; - inline bool has_variance_norm() const; - inline void clear_variance_norm(); - static const int kVarianceNormFieldNumber = 8; - inline ::caffe::FillerParameter_VarianceNorm variance_norm() const; - inline void set_variance_norm(::caffe::FillerParameter_VarianceNorm value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* type_; - static ::std::string* _default_type_; - float value_; - float min_; - float max_; - float mean_; - float std_; - ::google::protobuf::int32 sparse_; - int variance_norm_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static FillerParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class NetParameter : public ::google::protobuf::Message { - public: - NetParameter(); - virtual ~NetParameter(); - - NetParameter(const NetParameter& from); - - inline NetParameter& operator=(const NetParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const NetParameter& default_instance(); - - void Swap(NetParameter* other); - - // implements Message ---------------------------------------------- - - NetParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const NetParameter& from); - void MergeFrom(const NetParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string name = 1; - inline bool has_name() const; - inline void clear_name(); - static const int kNameFieldNumber = 1; - inline const ::std::string& name() const; - inline void set_name(const ::std::string& value); - inline void set_name(const char* value); - inline void set_name(const char* value, size_t size); - inline ::std::string* mutable_name(); - inline ::std::string* release_name(); - inline void set_allocated_name(::std::string* name); - - // repeated string input = 3; - inline int input_size() const; - inline void clear_input(); - static const int kInputFieldNumber = 3; - inline const ::std::string& input(int index) const; - inline ::std::string* mutable_input(int index); - inline void set_input(int index, const ::std::string& value); - inline void set_input(int index, const char* value); - inline void set_input(int index, const char* value, size_t size); - inline ::std::string* add_input(); - inline void add_input(const ::std::string& value); - inline void add_input(const char* value); - inline void add_input(const char* value, size_t size); - inline const ::google::protobuf::RepeatedPtrField< ::std::string>& input() const; - inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_input(); - - // repeated .caffe.BlobShape input_shape = 8; - inline int input_shape_size() const; - inline void clear_input_shape(); - static const int kInputShapeFieldNumber = 8; - inline const ::caffe::BlobShape& input_shape(int index) const; - inline ::caffe::BlobShape* mutable_input_shape(int index); - inline ::caffe::BlobShape* add_input_shape(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobShape >& - input_shape() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobShape >* - mutable_input_shape(); - - // repeated int32 input_dim = 4; - inline int input_dim_size() const; - inline void clear_input_dim(); - static const int kInputDimFieldNumber = 4; - inline ::google::protobuf::int32 input_dim(int index) const; - inline void set_input_dim(int index, ::google::protobuf::int32 value); - inline void add_input_dim(::google::protobuf::int32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - input_dim() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_input_dim(); - - // optional bool force_backward = 5 [default = false]; - inline bool has_force_backward() const; - inline void clear_force_backward(); - static const int kForceBackwardFieldNumber = 5; - inline bool force_backward() const; - inline void set_force_backward(bool value); - - // optional .caffe.NetState state = 6; - inline bool has_state() const; - inline void clear_state(); - static const int kStateFieldNumber = 6; - inline const ::caffe::NetState& state() const; - inline ::caffe::NetState* mutable_state(); - inline ::caffe::NetState* release_state(); - inline void set_allocated_state(::caffe::NetState* state); - - // optional bool debug_info = 7 [default = false]; - inline bool has_debug_info() const; - inline void clear_debug_info(); - static const int kDebugInfoFieldNumber = 7; - inline bool debug_info() const; - inline void set_debug_info(bool value); - - // repeated .caffe.LayerParameter layer = 100; - inline int layer_size() const; - inline void clear_layer(); - static const int kLayerFieldNumber = 100; - inline const ::caffe::LayerParameter& layer(int index) const; - inline ::caffe::LayerParameter* mutable_layer(int index); - inline ::caffe::LayerParameter* add_layer(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::LayerParameter >& - layer() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::LayerParameter >* - mutable_layer(); - - // repeated .caffe.V1LayerParameter layers = 2; - inline int layers_size() const; - inline void clear_layers(); - static const int kLayersFieldNumber = 2; - inline const ::caffe::V1LayerParameter& layers(int index) const; - inline ::caffe::V1LayerParameter* mutable_layers(int index); - inline ::caffe::V1LayerParameter* add_layers(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::V1LayerParameter >& - layers() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::V1LayerParameter >* - mutable_layers(); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* name_; - ::google::protobuf::RepeatedPtrField< ::std::string> input_; - ::google::protobuf::RepeatedPtrField< ::caffe::BlobShape > input_shape_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > input_dim_; - ::caffe::NetState* state_; - ::google::protobuf::RepeatedPtrField< ::caffe::LayerParameter > layer_; - ::google::protobuf::RepeatedPtrField< ::caffe::V1LayerParameter > layers_; - bool force_backward_; - bool debug_info_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static NetParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class SolverParameter : public ::google::protobuf::Message { - public: - SolverParameter(); - virtual ~SolverParameter(); - - SolverParameter(const SolverParameter& from); - - inline SolverParameter& operator=(const SolverParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SolverParameter& default_instance(); - - void Swap(SolverParameter* other); - - // implements Message ---------------------------------------------- - - SolverParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SolverParameter& from); - void MergeFrom(const SolverParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef SolverParameter_SolverMode SolverMode; - static const SolverMode CPU = SolverParameter_SolverMode_CPU; - static const SolverMode GPU = SolverParameter_SolverMode_GPU; - static inline bool SolverMode_IsValid(int value) { - return SolverParameter_SolverMode_IsValid(value); - } - static const SolverMode SolverMode_MIN = - SolverParameter_SolverMode_SolverMode_MIN; - static const SolverMode SolverMode_MAX = - SolverParameter_SolverMode_SolverMode_MAX; - static const int SolverMode_ARRAYSIZE = - SolverParameter_SolverMode_SolverMode_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - SolverMode_descriptor() { - return SolverParameter_SolverMode_descriptor(); - } - static inline const ::std::string& SolverMode_Name(SolverMode value) { - return SolverParameter_SolverMode_Name(value); - } - static inline bool SolverMode_Parse(const ::std::string& name, - SolverMode* value) { - return SolverParameter_SolverMode_Parse(name, value); - } - - typedef SolverParameter_SolverType SolverType; - static const SolverType SGD = SolverParameter_SolverType_SGD; - static const SolverType NESTEROV = SolverParameter_SolverType_NESTEROV; - static const SolverType ADAGRAD = SolverParameter_SolverType_ADAGRAD; - static inline bool SolverType_IsValid(int value) { - return SolverParameter_SolverType_IsValid(value); - } - static const SolverType SolverType_MIN = - SolverParameter_SolverType_SolverType_MIN; - static const SolverType SolverType_MAX = - SolverParameter_SolverType_SolverType_MAX; - static const int SolverType_ARRAYSIZE = - SolverParameter_SolverType_SolverType_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - SolverType_descriptor() { - return SolverParameter_SolverType_descriptor(); - } - static inline const ::std::string& SolverType_Name(SolverType value) { - return SolverParameter_SolverType_Name(value); - } - static inline bool SolverType_Parse(const ::std::string& name, - SolverType* value) { - return SolverParameter_SolverType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // optional string net = 24; - inline bool has_net() const; - inline void clear_net(); - static const int kNetFieldNumber = 24; - inline const ::std::string& net() const; - inline void set_net(const ::std::string& value); - inline void set_net(const char* value); - inline void set_net(const char* value, size_t size); - inline ::std::string* mutable_net(); - inline ::std::string* release_net(); - inline void set_allocated_net(::std::string* net); - - // optional .caffe.NetParameter net_param = 25; - inline bool has_net_param() const; - inline void clear_net_param(); - static const int kNetParamFieldNumber = 25; - inline const ::caffe::NetParameter& net_param() const; - inline ::caffe::NetParameter* mutable_net_param(); - inline ::caffe::NetParameter* release_net_param(); - inline void set_allocated_net_param(::caffe::NetParameter* net_param); - - // optional string train_net = 1; - inline bool has_train_net() const; - inline void clear_train_net(); - static const int kTrainNetFieldNumber = 1; - inline const ::std::string& train_net() const; - inline void set_train_net(const ::std::string& value); - inline void set_train_net(const char* value); - inline void set_train_net(const char* value, size_t size); - inline ::std::string* mutable_train_net(); - inline ::std::string* release_train_net(); - inline void set_allocated_train_net(::std::string* train_net); - - // repeated string test_net = 2; - inline int test_net_size() const; - inline void clear_test_net(); - static const int kTestNetFieldNumber = 2; - inline const ::std::string& test_net(int index) const; - inline ::std::string* mutable_test_net(int index); - inline void set_test_net(int index, const ::std::string& value); - inline void set_test_net(int index, const char* value); - inline void set_test_net(int index, const char* value, size_t size); - inline ::std::string* add_test_net(); - inline void add_test_net(const ::std::string& value); - inline void add_test_net(const char* value); - inline void add_test_net(const char* value, size_t size); - inline const ::google::protobuf::RepeatedPtrField< ::std::string>& test_net() const; - inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_test_net(); - - // optional .caffe.NetParameter train_net_param = 21; - inline bool has_train_net_param() const; - inline void clear_train_net_param(); - static const int kTrainNetParamFieldNumber = 21; - inline const ::caffe::NetParameter& train_net_param() const; - inline ::caffe::NetParameter* mutable_train_net_param(); - inline ::caffe::NetParameter* release_train_net_param(); - inline void set_allocated_train_net_param(::caffe::NetParameter* train_net_param); - - // repeated .caffe.NetParameter test_net_param = 22; - inline int test_net_param_size() const; - inline void clear_test_net_param(); - static const int kTestNetParamFieldNumber = 22; - inline const ::caffe::NetParameter& test_net_param(int index) const; - inline ::caffe::NetParameter* mutable_test_net_param(int index); - inline ::caffe::NetParameter* add_test_net_param(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetParameter >& - test_net_param() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::NetParameter >* - mutable_test_net_param(); - - // optional .caffe.NetState train_state = 26; - inline bool has_train_state() const; - inline void clear_train_state(); - static const int kTrainStateFieldNumber = 26; - inline const ::caffe::NetState& train_state() const; - inline ::caffe::NetState* mutable_train_state(); - inline ::caffe::NetState* release_train_state(); - inline void set_allocated_train_state(::caffe::NetState* train_state); - - // repeated .caffe.NetState test_state = 27; - inline int test_state_size() const; - inline void clear_test_state(); - static const int kTestStateFieldNumber = 27; - inline const ::caffe::NetState& test_state(int index) const; - inline ::caffe::NetState* mutable_test_state(int index); - inline ::caffe::NetState* add_test_state(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetState >& - test_state() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::NetState >* - mutable_test_state(); - - // repeated int32 test_iter = 3; - inline int test_iter_size() const; - inline void clear_test_iter(); - static const int kTestIterFieldNumber = 3; - inline ::google::protobuf::int32 test_iter(int index) const; - inline void set_test_iter(int index, ::google::protobuf::int32 value); - inline void add_test_iter(::google::protobuf::int32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - test_iter() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_test_iter(); - - // optional int32 test_interval = 4 [default = 0]; - inline bool has_test_interval() const; - inline void clear_test_interval(); - static const int kTestIntervalFieldNumber = 4; - inline ::google::protobuf::int32 test_interval() const; - inline void set_test_interval(::google::protobuf::int32 value); - - // optional bool test_compute_loss = 19 [default = false]; - inline bool has_test_compute_loss() const; - inline void clear_test_compute_loss(); - static const int kTestComputeLossFieldNumber = 19; - inline bool test_compute_loss() const; - inline void set_test_compute_loss(bool value); - - // optional bool test_initialization = 32 [default = true]; - inline bool has_test_initialization() const; - inline void clear_test_initialization(); - static const int kTestInitializationFieldNumber = 32; - inline bool test_initialization() const; - inline void set_test_initialization(bool value); - - // optional float base_lr = 5; - inline bool has_base_lr() const; - inline void clear_base_lr(); - static const int kBaseLrFieldNumber = 5; - inline float base_lr() const; - inline void set_base_lr(float value); - - // optional int32 display = 6; - inline bool has_display() const; - inline void clear_display(); - static const int kDisplayFieldNumber = 6; - inline ::google::protobuf::int32 display() const; - inline void set_display(::google::protobuf::int32 value); - - // optional int32 average_loss = 33 [default = 1]; - inline bool has_average_loss() const; - inline void clear_average_loss(); - static const int kAverageLossFieldNumber = 33; - inline ::google::protobuf::int32 average_loss() const; - inline void set_average_loss(::google::protobuf::int32 value); - - // optional int32 max_iter = 7; - inline bool has_max_iter() const; - inline void clear_max_iter(); - static const int kMaxIterFieldNumber = 7; - inline ::google::protobuf::int32 max_iter() const; - inline void set_max_iter(::google::protobuf::int32 value); - - // optional int32 iter_size = 36 [default = 1]; - inline bool has_iter_size() const; - inline void clear_iter_size(); - static const int kIterSizeFieldNumber = 36; - inline ::google::protobuf::int32 iter_size() const; - inline void set_iter_size(::google::protobuf::int32 value); - - // optional string lr_policy = 8; - inline bool has_lr_policy() const; - inline void clear_lr_policy(); - static const int kLrPolicyFieldNumber = 8; - inline const ::std::string& lr_policy() const; - inline void set_lr_policy(const ::std::string& value); - inline void set_lr_policy(const char* value); - inline void set_lr_policy(const char* value, size_t size); - inline ::std::string* mutable_lr_policy(); - inline ::std::string* release_lr_policy(); - inline void set_allocated_lr_policy(::std::string* lr_policy); - - // optional float gamma = 9; - inline bool has_gamma() const; - inline void clear_gamma(); - static const int kGammaFieldNumber = 9; - inline float gamma() const; - inline void set_gamma(float value); - - // optional float power = 10; - inline bool has_power() const; - inline void clear_power(); - static const int kPowerFieldNumber = 10; - inline float power() const; - inline void set_power(float value); - - // optional float momentum = 11; - inline bool has_momentum() const; - inline void clear_momentum(); - static const int kMomentumFieldNumber = 11; - inline float momentum() const; - inline void set_momentum(float value); - - // optional float weight_decay = 12; - inline bool has_weight_decay() const; - inline void clear_weight_decay(); - static const int kWeightDecayFieldNumber = 12; - inline float weight_decay() const; - inline void set_weight_decay(float value); - - // optional string regularization_type = 29 [default = "L2"]; - inline bool has_regularization_type() const; - inline void clear_regularization_type(); - static const int kRegularizationTypeFieldNumber = 29; - inline const ::std::string& regularization_type() const; - inline void set_regularization_type(const ::std::string& value); - inline void set_regularization_type(const char* value); - inline void set_regularization_type(const char* value, size_t size); - inline ::std::string* mutable_regularization_type(); - inline ::std::string* release_regularization_type(); - inline void set_allocated_regularization_type(::std::string* regularization_type); - - // optional int32 stepsize = 13; - inline bool has_stepsize() const; - inline void clear_stepsize(); - static const int kStepsizeFieldNumber = 13; - inline ::google::protobuf::int32 stepsize() const; - inline void set_stepsize(::google::protobuf::int32 value); - - // repeated int32 stepvalue = 34; - inline int stepvalue_size() const; - inline void clear_stepvalue(); - static const int kStepvalueFieldNumber = 34; - inline ::google::protobuf::int32 stepvalue(int index) const; - inline void set_stepvalue(int index, ::google::protobuf::int32 value); - inline void add_stepvalue(::google::protobuf::int32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - stepvalue() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_stepvalue(); - - // optional float clip_gradients = 35 [default = -1]; - inline bool has_clip_gradients() const; - inline void clear_clip_gradients(); - static const int kClipGradientsFieldNumber = 35; - inline float clip_gradients() const; - inline void set_clip_gradients(float value); - - // optional int32 snapshot = 14 [default = 0]; - inline bool has_snapshot() const; - inline void clear_snapshot(); - static const int kSnapshotFieldNumber = 14; - inline ::google::protobuf::int32 snapshot() const; - inline void set_snapshot(::google::protobuf::int32 value); - - // optional string snapshot_prefix = 15; - inline bool has_snapshot_prefix() const; - inline void clear_snapshot_prefix(); - static const int kSnapshotPrefixFieldNumber = 15; - inline const ::std::string& snapshot_prefix() const; - inline void set_snapshot_prefix(const ::std::string& value); - inline void set_snapshot_prefix(const char* value); - inline void set_snapshot_prefix(const char* value, size_t size); - inline ::std::string* mutable_snapshot_prefix(); - inline ::std::string* release_snapshot_prefix(); - inline void set_allocated_snapshot_prefix(::std::string* snapshot_prefix); - - // optional bool snapshot_diff = 16 [default = false]; - inline bool has_snapshot_diff() const; - inline void clear_snapshot_diff(); - static const int kSnapshotDiffFieldNumber = 16; - inline bool snapshot_diff() const; - inline void set_snapshot_diff(bool value); - - // optional .caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU]; - inline bool has_solver_mode() const; - inline void clear_solver_mode(); - static const int kSolverModeFieldNumber = 17; - inline ::caffe::SolverParameter_SolverMode solver_mode() const; - inline void set_solver_mode(::caffe::SolverParameter_SolverMode value); - - // optional int32 device_id = 18 [default = 0]; - inline bool has_device_id() const; - inline void clear_device_id(); - static const int kDeviceIdFieldNumber = 18; - inline ::google::protobuf::int32 device_id() const; - inline void set_device_id(::google::protobuf::int32 value); - - // optional int64 random_seed = 20 [default = -1]; - inline bool has_random_seed() const; - inline void clear_random_seed(); - static const int kRandomSeedFieldNumber = 20; - inline ::google::protobuf::int64 random_seed() const; - inline void set_random_seed(::google::protobuf::int64 value); - - // optional .caffe.SolverParameter.SolverType solver_type = 30 [default = SGD]; - inline bool has_solver_type() const; - inline void clear_solver_type(); - static const int kSolverTypeFieldNumber = 30; - inline ::caffe::SolverParameter_SolverType solver_type() const; - inline void set_solver_type(::caffe::SolverParameter_SolverType value); - - // optional float delta = 31 [default = 1e-08]; - inline bool has_delta() const; - inline void clear_delta(); - static const int kDeltaFieldNumber = 31; - inline float delta() const; - inline void set_delta(float value); - - // optional bool debug_info = 23 [default = false]; - inline bool has_debug_info() const; - inline void clear_debug_info(); - static const int kDebugInfoFieldNumber = 23; - inline bool debug_info() const; - inline void set_debug_info(bool value); - - // optional bool snapshot_after_train = 28 [default = true]; - inline bool has_snapshot_after_train() const; - inline void clear_snapshot_after_train(); - static const int kSnapshotAfterTrainFieldNumber = 28; - inline bool snapshot_after_train() const; - inline void set_snapshot_after_train(bool value); - - // @@protoc_insertion_point(class_scope: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_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_solver_type(); - inline void clear_has_solver_type(); - inline void set_has_delta(); - inline void clear_has_delta(); - 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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* net_; - ::caffe::NetParameter* net_param_; - ::std::string* train_net_; - ::google::protobuf::RepeatedPtrField< ::std::string> test_net_; - ::caffe::NetParameter* train_net_param_; - ::google::protobuf::RepeatedPtrField< ::caffe::NetParameter > test_net_param_; - ::caffe::NetState* train_state_; - ::google::protobuf::RepeatedPtrField< ::caffe::NetState > test_state_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > test_iter_; - ::google::protobuf::int32 test_interval_; - float base_lr_; - ::google::protobuf::int32 display_; - ::google::protobuf::int32 average_loss_; - ::google::protobuf::int32 max_iter_; - ::google::protobuf::int32 iter_size_; - ::std::string* lr_policy_; - float gamma_; - float power_; - float momentum_; - bool test_compute_loss_; - bool test_initialization_; - bool snapshot_diff_; - bool debug_info_; - float weight_decay_; - ::google::protobuf::int32 stepsize_; - ::std::string* regularization_type_; - static ::std::string* _default_regularization_type_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > stepvalue_; - float clip_gradients_; - ::google::protobuf::int32 snapshot_; - ::std::string* snapshot_prefix_; - int solver_mode_; - ::google::protobuf::int32 device_id_; - ::google::protobuf::int64 random_seed_; - int solver_type_; - float delta_; - bool snapshot_after_train_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(36 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static SolverParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class SolverState : public ::google::protobuf::Message { - public: - SolverState(); - virtual ~SolverState(); - - SolverState(const SolverState& from); - - inline SolverState& operator=(const SolverState& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SolverState& default_instance(); - - void Swap(SolverState* other); - - // implements Message ---------------------------------------------- - - SolverState* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SolverState& from); - void MergeFrom(const SolverState& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int32 iter = 1; - inline bool has_iter() const; - inline void clear_iter(); - static const int kIterFieldNumber = 1; - inline ::google::protobuf::int32 iter() const; - inline void set_iter(::google::protobuf::int32 value); - - // optional string learned_net = 2; - inline bool has_learned_net() const; - inline void clear_learned_net(); - static const int kLearnedNetFieldNumber = 2; - inline const ::std::string& learned_net() const; - inline void set_learned_net(const ::std::string& value); - inline void set_learned_net(const char* value); - inline void set_learned_net(const char* value, size_t size); - inline ::std::string* mutable_learned_net(); - inline ::std::string* release_learned_net(); - inline void set_allocated_learned_net(::std::string* learned_net); - - // repeated .caffe.BlobProto history = 3; - inline int history_size() const; - inline void clear_history(); - static const int kHistoryFieldNumber = 3; - inline const ::caffe::BlobProto& history(int index) const; - inline ::caffe::BlobProto* mutable_history(int index); - inline ::caffe::BlobProto* add_history(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >& - history() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >* - mutable_history(); - - // optional int32 current_step = 4 [default = 0]; - inline bool has_current_step() const; - inline void clear_current_step(); - static const int kCurrentStepFieldNumber = 4; - inline ::google::protobuf::int32 current_step() const; - inline void set_current_step(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* learned_net_; - ::google::protobuf::int32 iter_; - ::google::protobuf::int32 current_step_; - ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto > history_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static SolverState* default_instance_; -}; -// ------------------------------------------------------------------- - -class NetState : public ::google::protobuf::Message { - public: - NetState(); - virtual ~NetState(); - - NetState(const NetState& from); - - inline NetState& operator=(const NetState& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const NetState& default_instance(); - - void Swap(NetState* other); - - // implements Message ---------------------------------------------- - - NetState* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const NetState& from); - void MergeFrom(const NetState& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .caffe.Phase phase = 1 [default = TEST]; - inline bool has_phase() const; - inline void clear_phase(); - static const int kPhaseFieldNumber = 1; - inline ::caffe::Phase phase() const; - inline void set_phase(::caffe::Phase value); - - // optional int32 level = 2 [default = 0]; - inline bool has_level() const; - inline void clear_level(); - static const int kLevelFieldNumber = 2; - inline ::google::protobuf::int32 level() const; - inline void set_level(::google::protobuf::int32 value); - - // repeated string stage = 3; - inline int stage_size() const; - inline void clear_stage(); - static const int kStageFieldNumber = 3; - inline const ::std::string& stage(int index) const; - inline ::std::string* mutable_stage(int index); - inline void set_stage(int index, const ::std::string& value); - inline void set_stage(int index, const char* value); - inline void set_stage(int index, const char* value, size_t size); - inline ::std::string* add_stage(); - inline void add_stage(const ::std::string& value); - inline void add_stage(const char* value); - inline void add_stage(const char* value, size_t size); - inline const ::google::protobuf::RepeatedPtrField< ::std::string>& stage() const; - inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_stage(); - - // @@protoc_insertion_point(class_scope:caffe.NetState) - private: - inline void set_has_phase(); - inline void clear_has_phase(); - inline void set_has_level(); - inline void clear_has_level(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - int phase_; - ::google::protobuf::int32 level_; - ::google::protobuf::RepeatedPtrField< ::std::string> stage_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static NetState* default_instance_; -}; -// ------------------------------------------------------------------- - -class NetStateRule : public ::google::protobuf::Message { - public: - NetStateRule(); - virtual ~NetStateRule(); - - NetStateRule(const NetStateRule& from); - - inline NetStateRule& operator=(const NetStateRule& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const NetStateRule& default_instance(); - - void Swap(NetStateRule* other); - - // implements Message ---------------------------------------------- - - NetStateRule* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const NetStateRule& from); - void MergeFrom(const NetStateRule& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .caffe.Phase phase = 1; - inline bool has_phase() const; - inline void clear_phase(); - static const int kPhaseFieldNumber = 1; - inline ::caffe::Phase phase() const; - inline void set_phase(::caffe::Phase value); - - // optional int32 min_level = 2; - inline bool has_min_level() const; - inline void clear_min_level(); - static const int kMinLevelFieldNumber = 2; - inline ::google::protobuf::int32 min_level() const; - inline void set_min_level(::google::protobuf::int32 value); - - // optional int32 max_level = 3; - inline bool has_max_level() const; - inline void clear_max_level(); - static const int kMaxLevelFieldNumber = 3; - inline ::google::protobuf::int32 max_level() const; - inline void set_max_level(::google::protobuf::int32 value); - - // repeated string stage = 4; - inline int stage_size() const; - inline void clear_stage(); - static const int kStageFieldNumber = 4; - inline const ::std::string& stage(int index) const; - inline ::std::string* mutable_stage(int index); - inline void set_stage(int index, const ::std::string& value); - inline void set_stage(int index, const char* value); - inline void set_stage(int index, const char* value, size_t size); - inline ::std::string* add_stage(); - inline void add_stage(const ::std::string& value); - inline void add_stage(const char* value); - inline void add_stage(const char* value, size_t size); - inline const ::google::protobuf::RepeatedPtrField< ::std::string>& stage() const; - inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_stage(); - - // repeated string not_stage = 5; - inline int not_stage_size() const; - inline void clear_not_stage(); - static const int kNotStageFieldNumber = 5; - inline const ::std::string& not_stage(int index) const; - inline ::std::string* mutable_not_stage(int index); - inline void set_not_stage(int index, const ::std::string& value); - inline void set_not_stage(int index, const char* value); - inline void set_not_stage(int index, const char* value, size_t size); - inline ::std::string* add_not_stage(); - inline void add_not_stage(const ::std::string& value); - inline void add_not_stage(const char* value); - inline void add_not_stage(const char* value, size_t size); - inline const ::google::protobuf::RepeatedPtrField< ::std::string>& not_stage() const; - inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_not_stage(); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - int phase_; - ::google::protobuf::int32 min_level_; - ::google::protobuf::RepeatedPtrField< ::std::string> stage_; - ::google::protobuf::RepeatedPtrField< ::std::string> not_stage_; - ::google::protobuf::int32 max_level_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static NetStateRule* default_instance_; -}; -// ------------------------------------------------------------------- - -class ParamSpec : public ::google::protobuf::Message { - public: - ParamSpec(); - virtual ~ParamSpec(); - - ParamSpec(const ParamSpec& from); - - inline ParamSpec& operator=(const ParamSpec& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ParamSpec& default_instance(); - - void Swap(ParamSpec* other); - - // implements Message ---------------------------------------------- - - ParamSpec* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ParamSpec& from); - void MergeFrom(const ParamSpec& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef ParamSpec_DimCheckMode DimCheckMode; - static const DimCheckMode STRICT = ParamSpec_DimCheckMode_STRICT; - static const DimCheckMode PERMISSIVE = ParamSpec_DimCheckMode_PERMISSIVE; - static inline bool DimCheckMode_IsValid(int value) { - return ParamSpec_DimCheckMode_IsValid(value); - } - static const DimCheckMode DimCheckMode_MIN = - ParamSpec_DimCheckMode_DimCheckMode_MIN; - static const DimCheckMode DimCheckMode_MAX = - ParamSpec_DimCheckMode_DimCheckMode_MAX; - static const int DimCheckMode_ARRAYSIZE = - ParamSpec_DimCheckMode_DimCheckMode_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - DimCheckMode_descriptor() { - return ParamSpec_DimCheckMode_descriptor(); - } - static inline const ::std::string& DimCheckMode_Name(DimCheckMode value) { - return ParamSpec_DimCheckMode_Name(value); - } - static inline bool DimCheckMode_Parse(const ::std::string& name, - DimCheckMode* value) { - return ParamSpec_DimCheckMode_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // optional string name = 1; - inline bool has_name() const; - inline void clear_name(); - static const int kNameFieldNumber = 1; - inline const ::std::string& name() const; - inline void set_name(const ::std::string& value); - inline void set_name(const char* value); - inline void set_name(const char* value, size_t size); - inline ::std::string* mutable_name(); - inline ::std::string* release_name(); - inline void set_allocated_name(::std::string* name); - - // optional .caffe.ParamSpec.DimCheckMode share_mode = 2; - inline bool has_share_mode() const; - inline void clear_share_mode(); - static const int kShareModeFieldNumber = 2; - inline ::caffe::ParamSpec_DimCheckMode share_mode() const; - inline void set_share_mode(::caffe::ParamSpec_DimCheckMode value); - - // optional float lr_mult = 3 [default = 1]; - inline bool has_lr_mult() const; - inline void clear_lr_mult(); - static const int kLrMultFieldNumber = 3; - inline float lr_mult() const; - inline void set_lr_mult(float value); - - // optional float decay_mult = 4 [default = 1]; - inline bool has_decay_mult() const; - inline void clear_decay_mult(); - static const int kDecayMultFieldNumber = 4; - inline float decay_mult() const; - inline void set_decay_mult(float value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* name_; - int share_mode_; - float lr_mult_; - float decay_mult_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static ParamSpec* default_instance_; -}; -// ------------------------------------------------------------------- - -class LayerParameter : public ::google::protobuf::Message { - public: - LayerParameter(); - virtual ~LayerParameter(); - - LayerParameter(const LayerParameter& from); - - inline LayerParameter& operator=(const LayerParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const LayerParameter& default_instance(); - - void Swap(LayerParameter* other); - - // implements Message ---------------------------------------------- - - LayerParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const LayerParameter& from); - void MergeFrom(const LayerParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string name = 1; - inline bool has_name() const; - inline void clear_name(); - static const int kNameFieldNumber = 1; - inline const ::std::string& name() const; - inline void set_name(const ::std::string& value); - inline void set_name(const char* value); - inline void set_name(const char* value, size_t size); - inline ::std::string* mutable_name(); - inline ::std::string* release_name(); - inline void set_allocated_name(::std::string* name); - - // optional string type = 2; - inline bool has_type() const; - inline void clear_type(); - static const int kTypeFieldNumber = 2; - inline const ::std::string& type() const; - inline void set_type(const ::std::string& value); - inline void set_type(const char* value); - inline void set_type(const char* value, size_t size); - inline ::std::string* mutable_type(); - inline ::std::string* release_type(); - inline void set_allocated_type(::std::string* type); - - // repeated string bottom = 3; - inline int bottom_size() const; - inline void clear_bottom(); - static const int kBottomFieldNumber = 3; - inline const ::std::string& bottom(int index) const; - inline ::std::string* mutable_bottom(int index); - inline void set_bottom(int index, const ::std::string& value); - inline void set_bottom(int index, const char* value); - inline void set_bottom(int index, const char* value, size_t size); - inline ::std::string* add_bottom(); - inline void add_bottom(const ::std::string& value); - inline void add_bottom(const char* value); - inline void add_bottom(const char* value, size_t size); - inline const ::google::protobuf::RepeatedPtrField< ::std::string>& bottom() const; - inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_bottom(); - - // repeated string top = 4; - inline int top_size() const; - inline void clear_top(); - static const int kTopFieldNumber = 4; - inline const ::std::string& top(int index) const; - inline ::std::string* mutable_top(int index); - inline void set_top(int index, const ::std::string& value); - inline void set_top(int index, const char* value); - inline void set_top(int index, const char* value, size_t size); - inline ::std::string* add_top(); - inline void add_top(const ::std::string& value); - inline void add_top(const char* value); - inline void add_top(const char* value, size_t size); - inline const ::google::protobuf::RepeatedPtrField< ::std::string>& top() const; - inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_top(); - - // optional .caffe.Phase phase = 10; - inline bool has_phase() const; - inline void clear_phase(); - static const int kPhaseFieldNumber = 10; - inline ::caffe::Phase phase() const; - inline void set_phase(::caffe::Phase value); - - // repeated float loss_weight = 5; - inline int loss_weight_size() const; - inline void clear_loss_weight(); - static const int kLossWeightFieldNumber = 5; - inline float loss_weight(int index) const; - inline void set_loss_weight(int index, float value); - inline void add_loss_weight(float value); - inline const ::google::protobuf::RepeatedField< float >& - loss_weight() const; - inline ::google::protobuf::RepeatedField< float >* - mutable_loss_weight(); - - // repeated .caffe.ParamSpec param = 6; - inline int param_size() const; - inline void clear_param(); - static const int kParamFieldNumber = 6; - inline const ::caffe::ParamSpec& param(int index) const; - inline ::caffe::ParamSpec* mutable_param(int index); - inline ::caffe::ParamSpec* add_param(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::ParamSpec >& - param() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::ParamSpec >* - mutable_param(); - - // repeated .caffe.BlobProto blobs = 7; - inline int blobs_size() const; - inline void clear_blobs(); - static const int kBlobsFieldNumber = 7; - inline const ::caffe::BlobProto& blobs(int index) const; - inline ::caffe::BlobProto* mutable_blobs(int index); - inline ::caffe::BlobProto* add_blobs(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >& - blobs() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >* - mutable_blobs(); - - // repeated bool propagate_down = 11; - inline int propagate_down_size() const; - inline void clear_propagate_down(); - static const int kPropagateDownFieldNumber = 11; - inline bool propagate_down(int index) const; - inline void set_propagate_down(int index, bool value); - inline void add_propagate_down(bool value); - inline const ::google::protobuf::RepeatedField< bool >& - propagate_down() const; - inline ::google::protobuf::RepeatedField< bool >* - mutable_propagate_down(); - - // repeated .caffe.NetStateRule include = 8; - inline int include_size() const; - inline void clear_include(); - static const int kIncludeFieldNumber = 8; - inline const ::caffe::NetStateRule& include(int index) const; - inline ::caffe::NetStateRule* mutable_include(int index); - inline ::caffe::NetStateRule* add_include(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >& - include() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >* - mutable_include(); - - // repeated .caffe.NetStateRule exclude = 9; - inline int exclude_size() const; - inline void clear_exclude(); - static const int kExcludeFieldNumber = 9; - inline const ::caffe::NetStateRule& exclude(int index) const; - inline ::caffe::NetStateRule* mutable_exclude(int index); - inline ::caffe::NetStateRule* add_exclude(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >& - exclude() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >* - mutable_exclude(); - - // optional .caffe.TransformationParameter transform_param = 100; - inline bool has_transform_param() const; - inline void clear_transform_param(); - static const int kTransformParamFieldNumber = 100; - inline const ::caffe::TransformationParameter& transform_param() const; - inline ::caffe::TransformationParameter* mutable_transform_param(); - inline ::caffe::TransformationParameter* release_transform_param(); - inline void set_allocated_transform_param(::caffe::TransformationParameter* transform_param); - - // optional .caffe.LossParameter loss_param = 101; - inline bool has_loss_param() const; - inline void clear_loss_param(); - static const int kLossParamFieldNumber = 101; - inline const ::caffe::LossParameter& loss_param() const; - inline ::caffe::LossParameter* mutable_loss_param(); - inline ::caffe::LossParameter* release_loss_param(); - inline void set_allocated_loss_param(::caffe::LossParameter* loss_param); - - // optional .caffe.AccuracyParameter accuracy_param = 102; - inline bool has_accuracy_param() const; - inline void clear_accuracy_param(); - static const int kAccuracyParamFieldNumber = 102; - inline const ::caffe::AccuracyParameter& accuracy_param() const; - inline ::caffe::AccuracyParameter* mutable_accuracy_param(); - inline ::caffe::AccuracyParameter* release_accuracy_param(); - inline void set_allocated_accuracy_param(::caffe::AccuracyParameter* accuracy_param); - - // optional .caffe.ArgMaxParameter argmax_param = 103; - inline bool has_argmax_param() const; - inline void clear_argmax_param(); - static const int kArgmaxParamFieldNumber = 103; - inline const ::caffe::ArgMaxParameter& argmax_param() const; - inline ::caffe::ArgMaxParameter* mutable_argmax_param(); - inline ::caffe::ArgMaxParameter* release_argmax_param(); - inline void set_allocated_argmax_param(::caffe::ArgMaxParameter* argmax_param); - - // optional .caffe.ConcatParameter concat_param = 104; - inline bool has_concat_param() const; - inline void clear_concat_param(); - static const int kConcatParamFieldNumber = 104; - inline const ::caffe::ConcatParameter& concat_param() const; - inline ::caffe::ConcatParameter* mutable_concat_param(); - inline ::caffe::ConcatParameter* release_concat_param(); - inline void set_allocated_concat_param(::caffe::ConcatParameter* concat_param); - - // optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105; - inline bool has_contrastive_loss_param() const; - inline void clear_contrastive_loss_param(); - static const int kContrastiveLossParamFieldNumber = 105; - inline const ::caffe::ContrastiveLossParameter& contrastive_loss_param() const; - inline ::caffe::ContrastiveLossParameter* mutable_contrastive_loss_param(); - inline ::caffe::ContrastiveLossParameter* release_contrastive_loss_param(); - inline void set_allocated_contrastive_loss_param(::caffe::ContrastiveLossParameter* contrastive_loss_param); - - // optional .caffe.ConvolutionParameter convolution_param = 106; - inline bool has_convolution_param() const; - inline void clear_convolution_param(); - static const int kConvolutionParamFieldNumber = 106; - inline const ::caffe::ConvolutionParameter& convolution_param() const; - inline ::caffe::ConvolutionParameter* mutable_convolution_param(); - inline ::caffe::ConvolutionParameter* release_convolution_param(); - inline void set_allocated_convolution_param(::caffe::ConvolutionParameter* convolution_param); - - // optional .caffe.DataParameter data_param = 107; - inline bool has_data_param() const; - inline void clear_data_param(); - static const int kDataParamFieldNumber = 107; - inline const ::caffe::DataParameter& data_param() const; - inline ::caffe::DataParameter* mutable_data_param(); - inline ::caffe::DataParameter* release_data_param(); - inline void set_allocated_data_param(::caffe::DataParameter* data_param); - - // optional .caffe.DropoutParameter dropout_param = 108; - inline bool has_dropout_param() const; - inline void clear_dropout_param(); - static const int kDropoutParamFieldNumber = 108; - inline const ::caffe::DropoutParameter& dropout_param() const; - inline ::caffe::DropoutParameter* mutable_dropout_param(); - inline ::caffe::DropoutParameter* release_dropout_param(); - inline void set_allocated_dropout_param(::caffe::DropoutParameter* dropout_param); - - // optional .caffe.DummyDataParameter dummy_data_param = 109; - inline bool has_dummy_data_param() const; - inline void clear_dummy_data_param(); - static const int kDummyDataParamFieldNumber = 109; - inline const ::caffe::DummyDataParameter& dummy_data_param() const; - inline ::caffe::DummyDataParameter* mutable_dummy_data_param(); - inline ::caffe::DummyDataParameter* release_dummy_data_param(); - inline void set_allocated_dummy_data_param(::caffe::DummyDataParameter* dummy_data_param); - - // optional .caffe.EltwiseParameter eltwise_param = 110; - inline bool has_eltwise_param() const; - inline void clear_eltwise_param(); - static const int kEltwiseParamFieldNumber = 110; - inline const ::caffe::EltwiseParameter& eltwise_param() const; - inline ::caffe::EltwiseParameter* mutable_eltwise_param(); - inline ::caffe::EltwiseParameter* release_eltwise_param(); - inline void set_allocated_eltwise_param(::caffe::EltwiseParameter* eltwise_param); - - // optional .caffe.ExpParameter exp_param = 111; - inline bool has_exp_param() const; - inline void clear_exp_param(); - static const int kExpParamFieldNumber = 111; - inline const ::caffe::ExpParameter& exp_param() const; - inline ::caffe::ExpParameter* mutable_exp_param(); - inline ::caffe::ExpParameter* release_exp_param(); - inline void set_allocated_exp_param(::caffe::ExpParameter* exp_param); - - // optional .caffe.FlattenParameter flatten_param = 135; - inline bool has_flatten_param() const; - inline void clear_flatten_param(); - static const int kFlattenParamFieldNumber = 135; - inline const ::caffe::FlattenParameter& flatten_param() const; - inline ::caffe::FlattenParameter* mutable_flatten_param(); - inline ::caffe::FlattenParameter* release_flatten_param(); - inline void set_allocated_flatten_param(::caffe::FlattenParameter* flatten_param); - - // optional .caffe.HDF5DataParameter hdf5_data_param = 112; - inline bool has_hdf5_data_param() const; - inline void clear_hdf5_data_param(); - static const int kHdf5DataParamFieldNumber = 112; - inline const ::caffe::HDF5DataParameter& hdf5_data_param() const; - inline ::caffe::HDF5DataParameter* mutable_hdf5_data_param(); - inline ::caffe::HDF5DataParameter* release_hdf5_data_param(); - inline void set_allocated_hdf5_data_param(::caffe::HDF5DataParameter* hdf5_data_param); - - // optional .caffe.HDF5OutputParameter hdf5_output_param = 113; - inline bool has_hdf5_output_param() const; - inline void clear_hdf5_output_param(); - static const int kHdf5OutputParamFieldNumber = 113; - inline const ::caffe::HDF5OutputParameter& hdf5_output_param() const; - inline ::caffe::HDF5OutputParameter* mutable_hdf5_output_param(); - inline ::caffe::HDF5OutputParameter* release_hdf5_output_param(); - inline void set_allocated_hdf5_output_param(::caffe::HDF5OutputParameter* hdf5_output_param); - - // optional .caffe.HingeLossParameter hinge_loss_param = 114; - inline bool has_hinge_loss_param() const; - inline void clear_hinge_loss_param(); - static const int kHingeLossParamFieldNumber = 114; - inline const ::caffe::HingeLossParameter& hinge_loss_param() const; - inline ::caffe::HingeLossParameter* mutable_hinge_loss_param(); - inline ::caffe::HingeLossParameter* release_hinge_loss_param(); - inline void set_allocated_hinge_loss_param(::caffe::HingeLossParameter* hinge_loss_param); - - // optional .caffe.ImageDataParameter image_data_param = 115; - inline bool has_image_data_param() const; - inline void clear_image_data_param(); - static const int kImageDataParamFieldNumber = 115; - inline const ::caffe::ImageDataParameter& image_data_param() const; - inline ::caffe::ImageDataParameter* mutable_image_data_param(); - inline ::caffe::ImageDataParameter* release_image_data_param(); - inline void set_allocated_image_data_param(::caffe::ImageDataParameter* image_data_param); - - // optional .caffe.InfogainLossParameter infogain_loss_param = 116; - inline bool has_infogain_loss_param() const; - inline void clear_infogain_loss_param(); - static const int kInfogainLossParamFieldNumber = 116; - inline const ::caffe::InfogainLossParameter& infogain_loss_param() const; - inline ::caffe::InfogainLossParameter* mutable_infogain_loss_param(); - inline ::caffe::InfogainLossParameter* release_infogain_loss_param(); - inline void set_allocated_infogain_loss_param(::caffe::InfogainLossParameter* infogain_loss_param); - - // optional .caffe.InnerProductParameter inner_product_param = 117; - inline bool has_inner_product_param() const; - inline void clear_inner_product_param(); - static const int kInnerProductParamFieldNumber = 117; - inline const ::caffe::InnerProductParameter& inner_product_param() const; - inline ::caffe::InnerProductParameter* mutable_inner_product_param(); - inline ::caffe::InnerProductParameter* release_inner_product_param(); - inline void set_allocated_inner_product_param(::caffe::InnerProductParameter* inner_product_param); - - // optional .caffe.LogParameter log_param = 134; - inline bool has_log_param() const; - inline void clear_log_param(); - static const int kLogParamFieldNumber = 134; - inline const ::caffe::LogParameter& log_param() const; - inline ::caffe::LogParameter* mutable_log_param(); - inline ::caffe::LogParameter* release_log_param(); - inline void set_allocated_log_param(::caffe::LogParameter* log_param); - - // optional .caffe.LRNParameter lrn_param = 118; - inline bool has_lrn_param() const; - inline void clear_lrn_param(); - static const int kLrnParamFieldNumber = 118; - inline const ::caffe::LRNParameter& lrn_param() const; - inline ::caffe::LRNParameter* mutable_lrn_param(); - inline ::caffe::LRNParameter* release_lrn_param(); - inline void set_allocated_lrn_param(::caffe::LRNParameter* lrn_param); - - // optional .caffe.MemoryDataParameter memory_data_param = 119; - inline bool has_memory_data_param() const; - inline void clear_memory_data_param(); - static const int kMemoryDataParamFieldNumber = 119; - inline const ::caffe::MemoryDataParameter& memory_data_param() const; - inline ::caffe::MemoryDataParameter* mutable_memory_data_param(); - inline ::caffe::MemoryDataParameter* release_memory_data_param(); - inline void set_allocated_memory_data_param(::caffe::MemoryDataParameter* memory_data_param); - - // optional .caffe.MVNParameter mvn_param = 120; - inline bool has_mvn_param() const; - inline void clear_mvn_param(); - static const int kMvnParamFieldNumber = 120; - inline const ::caffe::MVNParameter& mvn_param() const; - inline ::caffe::MVNParameter* mutable_mvn_param(); - inline ::caffe::MVNParameter* release_mvn_param(); - inline void set_allocated_mvn_param(::caffe::MVNParameter* mvn_param); - - // optional .caffe.PoolingParameter pooling_param = 121; - inline bool has_pooling_param() const; - inline void clear_pooling_param(); - static const int kPoolingParamFieldNumber = 121; - inline const ::caffe::PoolingParameter& pooling_param() const; - inline ::caffe::PoolingParameter* mutable_pooling_param(); - inline ::caffe::PoolingParameter* release_pooling_param(); - inline void set_allocated_pooling_param(::caffe::PoolingParameter* pooling_param); - - // optional .caffe.PowerParameter power_param = 122; - inline bool has_power_param() const; - inline void clear_power_param(); - static const int kPowerParamFieldNumber = 122; - inline const ::caffe::PowerParameter& power_param() const; - inline ::caffe::PowerParameter* mutable_power_param(); - inline ::caffe::PowerParameter* release_power_param(); - inline void set_allocated_power_param(::caffe::PowerParameter* power_param); - - // optional .caffe.PReLUParameter prelu_param = 131; - inline bool has_prelu_param() const; - inline void clear_prelu_param(); - static const int kPreluParamFieldNumber = 131; - inline const ::caffe::PReLUParameter& prelu_param() const; - inline ::caffe::PReLUParameter* mutable_prelu_param(); - inline ::caffe::PReLUParameter* release_prelu_param(); - inline void set_allocated_prelu_param(::caffe::PReLUParameter* prelu_param); - - // optional .caffe.PythonParameter python_param = 130; - inline bool has_python_param() const; - inline void clear_python_param(); - static const int kPythonParamFieldNumber = 130; - inline const ::caffe::PythonParameter& python_param() const; - inline ::caffe::PythonParameter* mutable_python_param(); - inline ::caffe::PythonParameter* release_python_param(); - inline void set_allocated_python_param(::caffe::PythonParameter* python_param); - - // optional .caffe.ReductionParameter reduction_param = 136; - inline bool has_reduction_param() const; - inline void clear_reduction_param(); - static const int kReductionParamFieldNumber = 136; - inline const ::caffe::ReductionParameter& reduction_param() const; - inline ::caffe::ReductionParameter* mutable_reduction_param(); - inline ::caffe::ReductionParameter* release_reduction_param(); - inline void set_allocated_reduction_param(::caffe::ReductionParameter* reduction_param); - - // optional .caffe.ReLUParameter relu_param = 123; - inline bool has_relu_param() const; - inline void clear_relu_param(); - static const int kReluParamFieldNumber = 123; - inline const ::caffe::ReLUParameter& relu_param() const; - inline ::caffe::ReLUParameter* mutable_relu_param(); - inline ::caffe::ReLUParameter* release_relu_param(); - inline void set_allocated_relu_param(::caffe::ReLUParameter* relu_param); - - // optional .caffe.ReshapeParameter reshape_param = 133; - inline bool has_reshape_param() const; - inline void clear_reshape_param(); - static const int kReshapeParamFieldNumber = 133; - inline const ::caffe::ReshapeParameter& reshape_param() const; - inline ::caffe::ReshapeParameter* mutable_reshape_param(); - inline ::caffe::ReshapeParameter* release_reshape_param(); - inline void set_allocated_reshape_param(::caffe::ReshapeParameter* reshape_param); - - // optional .caffe.SigmoidParameter sigmoid_param = 124; - inline bool has_sigmoid_param() const; - inline void clear_sigmoid_param(); - static const int kSigmoidParamFieldNumber = 124; - inline const ::caffe::SigmoidParameter& sigmoid_param() const; - inline ::caffe::SigmoidParameter* mutable_sigmoid_param(); - inline ::caffe::SigmoidParameter* release_sigmoid_param(); - inline void set_allocated_sigmoid_param(::caffe::SigmoidParameter* sigmoid_param); - - // optional .caffe.SoftmaxParameter softmax_param = 125; - inline bool has_softmax_param() const; - inline void clear_softmax_param(); - static const int kSoftmaxParamFieldNumber = 125; - inline const ::caffe::SoftmaxParameter& softmax_param() const; - inline ::caffe::SoftmaxParameter* mutable_softmax_param(); - inline ::caffe::SoftmaxParameter* release_softmax_param(); - inline void set_allocated_softmax_param(::caffe::SoftmaxParameter* softmax_param); - - // optional .caffe.SPPParameter spp_param = 132; - inline bool has_spp_param() const; - inline void clear_spp_param(); - static const int kSppParamFieldNumber = 132; - inline const ::caffe::SPPParameter& spp_param() const; - inline ::caffe::SPPParameter* mutable_spp_param(); - inline ::caffe::SPPParameter* release_spp_param(); - inline void set_allocated_spp_param(::caffe::SPPParameter* spp_param); - - // optional .caffe.SliceParameter slice_param = 126; - inline bool has_slice_param() const; - inline void clear_slice_param(); - static const int kSliceParamFieldNumber = 126; - inline const ::caffe::SliceParameter& slice_param() const; - inline ::caffe::SliceParameter* mutable_slice_param(); - inline ::caffe::SliceParameter* release_slice_param(); - inline void set_allocated_slice_param(::caffe::SliceParameter* slice_param); - - // optional .caffe.TanHParameter tanh_param = 127; - inline bool has_tanh_param() const; - inline void clear_tanh_param(); - static const int kTanhParamFieldNumber = 127; - inline const ::caffe::TanHParameter& tanh_param() const; - inline ::caffe::TanHParameter* mutable_tanh_param(); - inline ::caffe::TanHParameter* release_tanh_param(); - inline void set_allocated_tanh_param(::caffe::TanHParameter* tanh_param); - - // optional .caffe.ThresholdParameter threshold_param = 128; - inline bool has_threshold_param() const; - inline void clear_threshold_param(); - static const int kThresholdParamFieldNumber = 128; - inline const ::caffe::ThresholdParameter& threshold_param() const; - inline ::caffe::ThresholdParameter* mutable_threshold_param(); - inline ::caffe::ThresholdParameter* release_threshold_param(); - inline void set_allocated_threshold_param(::caffe::ThresholdParameter* threshold_param); - - // optional .caffe.WindowDataParameter window_data_param = 129; - inline bool has_window_data_param() const; - inline void clear_window_data_param(); - static const int kWindowDataParamFieldNumber = 129; - inline const ::caffe::WindowDataParameter& window_data_param() const; - inline ::caffe::WindowDataParameter* mutable_window_data_param(); - inline ::caffe::WindowDataParameter* release_window_data_param(); - inline void set_allocated_window_data_param(::caffe::WindowDataParameter* window_data_param); - - // @@protoc_insertion_point(class_scope: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_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_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_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_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_python_param(); - inline void clear_has_python_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_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_window_data_param(); - inline void clear_has_window_data_param(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* name_; - ::std::string* type_; - ::google::protobuf::RepeatedPtrField< ::std::string> bottom_; - ::google::protobuf::RepeatedPtrField< ::std::string> top_; - ::google::protobuf::RepeatedField< float > loss_weight_; - ::google::protobuf::RepeatedPtrField< ::caffe::ParamSpec > param_; - ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto > blobs_; - ::google::protobuf::RepeatedField< bool > propagate_down_; - ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule > include_; - ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule > exclude_; - ::caffe::TransformationParameter* transform_param_; - ::caffe::LossParameter* loss_param_; - ::caffe::AccuracyParameter* accuracy_param_; - ::caffe::ArgMaxParameter* argmax_param_; - ::caffe::ConcatParameter* concat_param_; - ::caffe::ContrastiveLossParameter* contrastive_loss_param_; - ::caffe::ConvolutionParameter* convolution_param_; - ::caffe::DataParameter* data_param_; - ::caffe::DropoutParameter* dropout_param_; - ::caffe::DummyDataParameter* dummy_data_param_; - ::caffe::EltwiseParameter* eltwise_param_; - ::caffe::ExpParameter* exp_param_; - ::caffe::FlattenParameter* flatten_param_; - ::caffe::HDF5DataParameter* hdf5_data_param_; - ::caffe::HDF5OutputParameter* hdf5_output_param_; - ::caffe::HingeLossParameter* hinge_loss_param_; - ::caffe::ImageDataParameter* image_data_param_; - ::caffe::InfogainLossParameter* infogain_loss_param_; - ::caffe::InnerProductParameter* inner_product_param_; - ::caffe::LogParameter* log_param_; - ::caffe::LRNParameter* lrn_param_; - ::caffe::MemoryDataParameter* memory_data_param_; - ::caffe::MVNParameter* mvn_param_; - ::caffe::PoolingParameter* pooling_param_; - ::caffe::PowerParameter* power_param_; - ::caffe::PReLUParameter* prelu_param_; - ::caffe::PythonParameter* python_param_; - ::caffe::ReductionParameter* reduction_param_; - ::caffe::ReLUParameter* relu_param_; - ::caffe::ReshapeParameter* reshape_param_; - ::caffe::SigmoidParameter* sigmoid_param_; - ::caffe::SoftmaxParameter* softmax_param_; - ::caffe::SPPParameter* spp_param_; - ::caffe::SliceParameter* slice_param_; - ::caffe::TanHParameter* tanh_param_; - ::caffe::ThresholdParameter* threshold_param_; - ::caffe::WindowDataParameter* window_data_param_; - int phase_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(48 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static LayerParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class TransformationParameter : public ::google::protobuf::Message { - public: - TransformationParameter(); - virtual ~TransformationParameter(); - - TransformationParameter(const TransformationParameter& from); - - inline TransformationParameter& operator=(const TransformationParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const TransformationParameter& default_instance(); - - void Swap(TransformationParameter* other); - - // implements Message ---------------------------------------------- - - TransformationParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const TransformationParameter& from); - void MergeFrom(const TransformationParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional float scale = 1 [default = 1]; - inline bool has_scale() const; - inline void clear_scale(); - static const int kScaleFieldNumber = 1; - inline float scale() const; - inline void set_scale(float value); - - // optional bool mirror = 2 [default = false]; - inline bool has_mirror() const; - inline void clear_mirror(); - static const int kMirrorFieldNumber = 2; - inline bool mirror() const; - inline void set_mirror(bool value); - - // optional uint32 crop_size = 3 [default = 0]; - inline bool has_crop_size() const; - inline void clear_crop_size(); - static const int kCropSizeFieldNumber = 3; - inline ::google::protobuf::uint32 crop_size() const; - inline void set_crop_size(::google::protobuf::uint32 value); - - // optional string mean_file = 4; - inline bool has_mean_file() const; - inline void clear_mean_file(); - static const int kMeanFileFieldNumber = 4; - inline const ::std::string& mean_file() const; - inline void set_mean_file(const ::std::string& value); - inline void set_mean_file(const char* value); - inline void set_mean_file(const char* value, size_t size); - inline ::std::string* mutable_mean_file(); - inline ::std::string* release_mean_file(); - inline void set_allocated_mean_file(::std::string* mean_file); - - // repeated float mean_value = 5; - inline int mean_value_size() const; - inline void clear_mean_value(); - static const int kMeanValueFieldNumber = 5; - inline float mean_value(int index) const; - inline void set_mean_value(int index, float value); - inline void add_mean_value(float value); - inline const ::google::protobuf::RepeatedField< float >& - mean_value() const; - inline ::google::protobuf::RepeatedField< float >* - mutable_mean_value(); - - // optional bool force_color = 6 [default = false]; - inline bool has_force_color() const; - inline void clear_force_color(); - static const int kForceColorFieldNumber = 6; - inline bool force_color() const; - inline void set_force_color(bool value); - - // optional bool force_gray = 7 [default = false]; - inline bool has_force_gray() const; - inline void clear_force_gray(); - static const int kForceGrayFieldNumber = 7; - inline bool force_gray() const; - inline void set_force_gray(bool value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - float scale_; - ::google::protobuf::uint32 crop_size_; - ::std::string* mean_file_; - ::google::protobuf::RepeatedField< float > mean_value_; - bool mirror_; - bool force_color_; - bool force_gray_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static TransformationParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class LossParameter : public ::google::protobuf::Message { - public: - LossParameter(); - virtual ~LossParameter(); - - LossParameter(const LossParameter& from); - - inline LossParameter& operator=(const LossParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const LossParameter& default_instance(); - - void Swap(LossParameter* other); - - // implements Message ---------------------------------------------- - - LossParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const LossParameter& from); - void MergeFrom(const LossParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int32 ignore_label = 1; - inline bool has_ignore_label() const; - inline void clear_ignore_label(); - static const int kIgnoreLabelFieldNumber = 1; - inline ::google::protobuf::int32 ignore_label() const; - inline void set_ignore_label(::google::protobuf::int32 value); - - // optional bool normalize = 2 [default = true]; - inline bool has_normalize() const; - inline void clear_normalize(); - static const int kNormalizeFieldNumber = 2; - inline bool normalize() const; - inline void set_normalize(bool value); - - // @@protoc_insertion_point(class_scope:caffe.LossParameter) - private: - inline void set_has_ignore_label(); - inline void clear_has_ignore_label(); - inline void set_has_normalize(); - inline void clear_has_normalize(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::int32 ignore_label_; - bool normalize_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static LossParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class AccuracyParameter : public ::google::protobuf::Message { - public: - AccuracyParameter(); - virtual ~AccuracyParameter(); - - AccuracyParameter(const AccuracyParameter& from); - - inline AccuracyParameter& operator=(const AccuracyParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const AccuracyParameter& default_instance(); - - void Swap(AccuracyParameter* other); - - // implements Message ---------------------------------------------- - - AccuracyParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AccuracyParameter& from); - void MergeFrom(const AccuracyParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional uint32 top_k = 1 [default = 1]; - inline bool has_top_k() const; - inline void clear_top_k(); - static const int kTopKFieldNumber = 1; - inline ::google::protobuf::uint32 top_k() const; - inline void set_top_k(::google::protobuf::uint32 value); - - // optional int32 axis = 2 [default = 1]; - inline bool has_axis() const; - inline void clear_axis(); - static const int kAxisFieldNumber = 2; - inline ::google::protobuf::int32 axis() const; - inline void set_axis(::google::protobuf::int32 value); - - // optional int32 ignore_label = 3; - inline bool has_ignore_label() const; - inline void clear_ignore_label(); - static const int kIgnoreLabelFieldNumber = 3; - inline ::google::protobuf::int32 ignore_label() const; - inline void set_ignore_label(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 top_k_; - ::google::protobuf::int32 axis_; - ::google::protobuf::int32 ignore_label_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static AccuracyParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class ArgMaxParameter : public ::google::protobuf::Message { - public: - ArgMaxParameter(); - virtual ~ArgMaxParameter(); - - ArgMaxParameter(const ArgMaxParameter& from); - - inline ArgMaxParameter& operator=(const ArgMaxParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ArgMaxParameter& default_instance(); - - void Swap(ArgMaxParameter* other); - - // implements Message ---------------------------------------------- - - ArgMaxParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ArgMaxParameter& from); - void MergeFrom(const ArgMaxParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional bool out_max_val = 1 [default = false]; - inline bool has_out_max_val() const; - inline void clear_out_max_val(); - static const int kOutMaxValFieldNumber = 1; - inline bool out_max_val() const; - inline void set_out_max_val(bool value); - - // optional uint32 top_k = 2 [default = 1]; - inline bool has_top_k() const; - inline void clear_top_k(); - static const int kTopKFieldNumber = 2; - inline ::google::protobuf::uint32 top_k() const; - inline void set_top_k(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - bool out_max_val_; - ::google::protobuf::uint32 top_k_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static ArgMaxParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class ConcatParameter : public ::google::protobuf::Message { - public: - ConcatParameter(); - virtual ~ConcatParameter(); - - ConcatParameter(const ConcatParameter& from); - - inline ConcatParameter& operator=(const ConcatParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ConcatParameter& default_instance(); - - void Swap(ConcatParameter* other); - - // implements Message ---------------------------------------------- - - ConcatParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ConcatParameter& from); - void MergeFrom(const ConcatParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int32 axis = 2 [default = 1]; - inline bool has_axis() const; - inline void clear_axis(); - static const int kAxisFieldNumber = 2; - inline ::google::protobuf::int32 axis() const; - inline void set_axis(::google::protobuf::int32 value); - - // optional uint32 concat_dim = 1 [default = 1]; - inline bool has_concat_dim() const; - inline void clear_concat_dim(); - static const int kConcatDimFieldNumber = 1; - inline ::google::protobuf::uint32 concat_dim() const; - inline void set_concat_dim(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::int32 axis_; - ::google::protobuf::uint32 concat_dim_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static ConcatParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class ContrastiveLossParameter : public ::google::protobuf::Message { - public: - ContrastiveLossParameter(); - virtual ~ContrastiveLossParameter(); - - ContrastiveLossParameter(const ContrastiveLossParameter& from); - - inline ContrastiveLossParameter& operator=(const ContrastiveLossParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ContrastiveLossParameter& default_instance(); - - void Swap(ContrastiveLossParameter* other); - - // implements Message ---------------------------------------------- - - ContrastiveLossParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ContrastiveLossParameter& from); - void MergeFrom(const ContrastiveLossParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional float margin = 1 [default = 1]; - inline bool has_margin() const; - inline void clear_margin(); - static const int kMarginFieldNumber = 1; - inline float margin() const; - inline void set_margin(float value); - - // optional bool legacy_version = 2 [default = false]; - inline bool has_legacy_version() const; - inline void clear_legacy_version(); - static const int kLegacyVersionFieldNumber = 2; - inline bool legacy_version() const; - inline void set_legacy_version(bool value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - float margin_; - bool legacy_version_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static ContrastiveLossParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class ConvolutionParameter : public ::google::protobuf::Message { - public: - ConvolutionParameter(); - virtual ~ConvolutionParameter(); - - ConvolutionParameter(const ConvolutionParameter& from); - - inline ConvolutionParameter& operator=(const ConvolutionParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ConvolutionParameter& default_instance(); - - void Swap(ConvolutionParameter* other); - - // implements Message ---------------------------------------------- - - ConvolutionParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ConvolutionParameter& from); - void MergeFrom(const ConvolutionParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef ConvolutionParameter_Engine Engine; - static const Engine DEFAULT = ConvolutionParameter_Engine_DEFAULT; - static const Engine CAFFE = ConvolutionParameter_Engine_CAFFE; - static const Engine CUDNN = ConvolutionParameter_Engine_CUDNN; - static inline bool Engine_IsValid(int value) { - return ConvolutionParameter_Engine_IsValid(value); - } - static const Engine Engine_MIN = - ConvolutionParameter_Engine_Engine_MIN; - static const Engine Engine_MAX = - ConvolutionParameter_Engine_Engine_MAX; - static const int Engine_ARRAYSIZE = - ConvolutionParameter_Engine_Engine_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Engine_descriptor() { - return ConvolutionParameter_Engine_descriptor(); - } - static inline const ::std::string& Engine_Name(Engine value) { - return ConvolutionParameter_Engine_Name(value); - } - static inline bool Engine_Parse(const ::std::string& name, - Engine* value) { - return ConvolutionParameter_Engine_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // optional uint32 num_output = 1; - inline bool has_num_output() const; - inline void clear_num_output(); - static const int kNumOutputFieldNumber = 1; - inline ::google::protobuf::uint32 num_output() const; - inline void set_num_output(::google::protobuf::uint32 value); - - // optional bool bias_term = 2 [default = true]; - inline bool has_bias_term() const; - inline void clear_bias_term(); - static const int kBiasTermFieldNumber = 2; - inline bool bias_term() const; - inline void set_bias_term(bool value); - - // optional uint32 pad = 3 [default = 0]; - inline bool has_pad() const; - inline void clear_pad(); - static const int kPadFieldNumber = 3; - inline ::google::protobuf::uint32 pad() const; - inline void set_pad(::google::protobuf::uint32 value); - - // optional uint32 pad_h = 9 [default = 0]; - inline bool has_pad_h() const; - inline void clear_pad_h(); - static const int kPadHFieldNumber = 9; - inline ::google::protobuf::uint32 pad_h() const; - inline void set_pad_h(::google::protobuf::uint32 value); - - // optional uint32 pad_w = 10 [default = 0]; - inline bool has_pad_w() const; - inline void clear_pad_w(); - static const int kPadWFieldNumber = 10; - inline ::google::protobuf::uint32 pad_w() const; - inline void set_pad_w(::google::protobuf::uint32 value); - - // optional uint32 kernel_size = 4; - inline bool has_kernel_size() const; - inline void clear_kernel_size(); - static const int kKernelSizeFieldNumber = 4; - inline ::google::protobuf::uint32 kernel_size() const; - inline void set_kernel_size(::google::protobuf::uint32 value); - - // optional uint32 kernel_h = 11; - inline bool has_kernel_h() const; - inline void clear_kernel_h(); - static const int kKernelHFieldNumber = 11; - inline ::google::protobuf::uint32 kernel_h() const; - inline void set_kernel_h(::google::protobuf::uint32 value); - - // optional uint32 kernel_w = 12; - inline bool has_kernel_w() const; - inline void clear_kernel_w(); - static const int kKernelWFieldNumber = 12; - inline ::google::protobuf::uint32 kernel_w() const; - inline void set_kernel_w(::google::protobuf::uint32 value); - - // optional uint32 group = 5 [default = 1]; - inline bool has_group() const; - inline void clear_group(); - static const int kGroupFieldNumber = 5; - inline ::google::protobuf::uint32 group() const; - inline void set_group(::google::protobuf::uint32 value); - - // optional uint32 stride = 6 [default = 1]; - inline bool has_stride() const; - inline void clear_stride(); - static const int kStrideFieldNumber = 6; - inline ::google::protobuf::uint32 stride() const; - inline void set_stride(::google::protobuf::uint32 value); - - // optional uint32 stride_h = 13; - inline bool has_stride_h() const; - inline void clear_stride_h(); - static const int kStrideHFieldNumber = 13; - inline ::google::protobuf::uint32 stride_h() const; - inline void set_stride_h(::google::protobuf::uint32 value); - - // optional uint32 stride_w = 14; - inline bool has_stride_w() const; - inline void clear_stride_w(); - static const int kStrideWFieldNumber = 14; - inline ::google::protobuf::uint32 stride_w() const; - inline void set_stride_w(::google::protobuf::uint32 value); - - // optional .caffe.FillerParameter weight_filler = 7; - inline bool has_weight_filler() const; - inline void clear_weight_filler(); - static const int kWeightFillerFieldNumber = 7; - inline const ::caffe::FillerParameter& weight_filler() const; - inline ::caffe::FillerParameter* mutable_weight_filler(); - inline ::caffe::FillerParameter* release_weight_filler(); - inline void set_allocated_weight_filler(::caffe::FillerParameter* weight_filler); - - // optional .caffe.FillerParameter bias_filler = 8; - inline bool has_bias_filler() const; - inline void clear_bias_filler(); - static const int kBiasFillerFieldNumber = 8; - inline const ::caffe::FillerParameter& bias_filler() const; - inline ::caffe::FillerParameter* mutable_bias_filler(); - inline ::caffe::FillerParameter* release_bias_filler(); - inline void set_allocated_bias_filler(::caffe::FillerParameter* bias_filler); - - // optional .caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; - inline bool has_engine() const; - inline void clear_engine(); - static const int kEngineFieldNumber = 15; - inline ::caffe::ConvolutionParameter_Engine engine() const; - inline void set_engine(::caffe::ConvolutionParameter_Engine value); - - // @@protoc_insertion_point(class_scope: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(); - 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_group(); - inline void clear_has_group(); - 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_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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 num_output_; - bool bias_term_; - ::google::protobuf::uint32 pad_; - ::google::protobuf::uint32 pad_h_; - ::google::protobuf::uint32 pad_w_; - ::google::protobuf::uint32 kernel_size_; - ::google::protobuf::uint32 kernel_h_; - ::google::protobuf::uint32 kernel_w_; - ::google::protobuf::uint32 group_; - ::google::protobuf::uint32 stride_; - ::google::protobuf::uint32 stride_h_; - ::google::protobuf::uint32 stride_w_; - ::caffe::FillerParameter* weight_filler_; - ::caffe::FillerParameter* bias_filler_; - int engine_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(15 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static ConvolutionParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class DataParameter : public ::google::protobuf::Message { - public: - DataParameter(); - virtual ~DataParameter(); - - DataParameter(const DataParameter& from); - - inline DataParameter& operator=(const DataParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const DataParameter& default_instance(); - - void Swap(DataParameter* other); - - // implements Message ---------------------------------------------- - - DataParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const DataParameter& from); - void MergeFrom(const DataParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef DataParameter_DB DB; - static const DB LEVELDB = DataParameter_DB_LEVELDB; - static const DB LMDB = DataParameter_DB_LMDB; - static inline bool DB_IsValid(int value) { - return DataParameter_DB_IsValid(value); - } - static const DB DB_MIN = - DataParameter_DB_DB_MIN; - static const DB DB_MAX = - DataParameter_DB_DB_MAX; - static const int DB_ARRAYSIZE = - DataParameter_DB_DB_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - DB_descriptor() { - return DataParameter_DB_descriptor(); - } - static inline const ::std::string& DB_Name(DB value) { - return DataParameter_DB_Name(value); - } - static inline bool DB_Parse(const ::std::string& name, - DB* value) { - return DataParameter_DB_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // optional string source = 1; - inline bool has_source() const; - inline void clear_source(); - static const int kSourceFieldNumber = 1; - inline const ::std::string& source() const; - inline void set_source(const ::std::string& value); - inline void set_source(const char* value); - inline void set_source(const char* value, size_t size); - inline ::std::string* mutable_source(); - inline ::std::string* release_source(); - inline void set_allocated_source(::std::string* source); - - // optional uint32 batch_size = 4; - inline bool has_batch_size() const; - inline void clear_batch_size(); - static const int kBatchSizeFieldNumber = 4; - inline ::google::protobuf::uint32 batch_size() const; - inline void set_batch_size(::google::protobuf::uint32 value); - - // optional uint32 rand_skip = 7 [default = 0]; - inline bool has_rand_skip() const; - inline void clear_rand_skip(); - static const int kRandSkipFieldNumber = 7; - inline ::google::protobuf::uint32 rand_skip() const; - inline void set_rand_skip(::google::protobuf::uint32 value); - - // optional .caffe.DataParameter.DB backend = 8 [default = LEVELDB]; - inline bool has_backend() const; - inline void clear_backend(); - static const int kBackendFieldNumber = 8; - inline ::caffe::DataParameter_DB backend() const; - inline void set_backend(::caffe::DataParameter_DB value); - - // optional float scale = 2 [default = 1]; - inline bool has_scale() const; - inline void clear_scale(); - static const int kScaleFieldNumber = 2; - inline float scale() const; - inline void set_scale(float value); - - // optional string mean_file = 3; - inline bool has_mean_file() const; - inline void clear_mean_file(); - static const int kMeanFileFieldNumber = 3; - inline const ::std::string& mean_file() const; - inline void set_mean_file(const ::std::string& value); - inline void set_mean_file(const char* value); - inline void set_mean_file(const char* value, size_t size); - inline ::std::string* mutable_mean_file(); - inline ::std::string* release_mean_file(); - inline void set_allocated_mean_file(::std::string* mean_file); - - // optional uint32 crop_size = 5 [default = 0]; - inline bool has_crop_size() const; - inline void clear_crop_size(); - static const int kCropSizeFieldNumber = 5; - inline ::google::protobuf::uint32 crop_size() const; - inline void set_crop_size(::google::protobuf::uint32 value); - - // optional bool mirror = 6 [default = false]; - inline bool has_mirror() const; - inline void clear_mirror(); - static const int kMirrorFieldNumber = 6; - inline bool mirror() const; - inline void set_mirror(bool value); - - // optional bool force_encoded_color = 9 [default = false]; - inline bool has_force_encoded_color() const; - inline void clear_force_encoded_color(); - static const int kForceEncodedColorFieldNumber = 9; - inline bool force_encoded_color() const; - inline void set_force_encoded_color(bool value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* source_; - ::google::protobuf::uint32 batch_size_; - ::google::protobuf::uint32 rand_skip_; - int backend_; - float scale_; - ::std::string* mean_file_; - ::google::protobuf::uint32 crop_size_; - bool mirror_; - bool force_encoded_color_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static DataParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class DropoutParameter : public ::google::protobuf::Message { - public: - DropoutParameter(); - virtual ~DropoutParameter(); - - DropoutParameter(const DropoutParameter& from); - - inline DropoutParameter& operator=(const DropoutParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const DropoutParameter& default_instance(); - - void Swap(DropoutParameter* other); - - // implements Message ---------------------------------------------- - - DropoutParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const DropoutParameter& from); - void MergeFrom(const DropoutParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional float dropout_ratio = 1 [default = 0.5]; - inline bool has_dropout_ratio() const; - inline void clear_dropout_ratio(); - static const int kDropoutRatioFieldNumber = 1; - inline float dropout_ratio() const; - inline void set_dropout_ratio(float value); - - // @@protoc_insertion_point(class_scope:caffe.DropoutParameter) - private: - inline void set_has_dropout_ratio(); - inline void clear_has_dropout_ratio(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - float dropout_ratio_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static DropoutParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class DummyDataParameter : public ::google::protobuf::Message { - public: - DummyDataParameter(); - virtual ~DummyDataParameter(); - - DummyDataParameter(const DummyDataParameter& from); - - inline DummyDataParameter& operator=(const DummyDataParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const DummyDataParameter& default_instance(); - - void Swap(DummyDataParameter* other); - - // implements Message ---------------------------------------------- - - DummyDataParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const DummyDataParameter& from); - void MergeFrom(const DummyDataParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .caffe.FillerParameter data_filler = 1; - inline int data_filler_size() const; - inline void clear_data_filler(); - static const int kDataFillerFieldNumber = 1; - inline const ::caffe::FillerParameter& data_filler(int index) const; - inline ::caffe::FillerParameter* mutable_data_filler(int index); - inline ::caffe::FillerParameter* add_data_filler(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::FillerParameter >& - data_filler() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::FillerParameter >* - mutable_data_filler(); - - // repeated .caffe.BlobShape shape = 6; - inline int shape_size() const; - inline void clear_shape(); - static const int kShapeFieldNumber = 6; - inline const ::caffe::BlobShape& shape(int index) const; - inline ::caffe::BlobShape* mutable_shape(int index); - inline ::caffe::BlobShape* add_shape(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobShape >& - shape() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobShape >* - mutable_shape(); - - // repeated uint32 num = 2; - inline int num_size() const; - inline void clear_num(); - static const int kNumFieldNumber = 2; - inline ::google::protobuf::uint32 num(int index) const; - inline void set_num(int index, ::google::protobuf::uint32 value); - inline void add_num(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - num() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_num(); - - // repeated uint32 channels = 3; - inline int channels_size() const; - inline void clear_channels(); - static const int kChannelsFieldNumber = 3; - inline ::google::protobuf::uint32 channels(int index) const; - inline void set_channels(int index, ::google::protobuf::uint32 value); - inline void add_channels(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - channels() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_channels(); - - // repeated uint32 height = 4; - inline int height_size() const; - inline void clear_height(); - static const int kHeightFieldNumber = 4; - inline ::google::protobuf::uint32 height(int index) const; - inline void set_height(int index, ::google::protobuf::uint32 value); - inline void add_height(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - height() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_height(); - - // repeated uint32 width = 5; - inline int width_size() const; - inline void clear_width(); - static const int kWidthFieldNumber = 5; - inline ::google::protobuf::uint32 width(int index) const; - inline void set_width(int index, ::google::protobuf::uint32 value); - inline void add_width(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - width() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_width(); - - // @@protoc_insertion_point(class_scope:caffe.DummyDataParameter) - private: - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::RepeatedPtrField< ::caffe::FillerParameter > data_filler_; - ::google::protobuf::RepeatedPtrField< ::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_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static DummyDataParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class EltwiseParameter : public ::google::protobuf::Message { - public: - EltwiseParameter(); - virtual ~EltwiseParameter(); - - EltwiseParameter(const EltwiseParameter& from); - - inline EltwiseParameter& operator=(const EltwiseParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const EltwiseParameter& default_instance(); - - void Swap(EltwiseParameter* other); - - // implements Message ---------------------------------------------- - - EltwiseParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const EltwiseParameter& from); - void MergeFrom(const EltwiseParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef EltwiseParameter_EltwiseOp EltwiseOp; - static const EltwiseOp PROD = EltwiseParameter_EltwiseOp_PROD; - static const EltwiseOp SUM = EltwiseParameter_EltwiseOp_SUM; - static const EltwiseOp MAX = EltwiseParameter_EltwiseOp_MAX; - static inline bool EltwiseOp_IsValid(int value) { - return EltwiseParameter_EltwiseOp_IsValid(value); - } - static const EltwiseOp EltwiseOp_MIN = - EltwiseParameter_EltwiseOp_EltwiseOp_MIN; - static const EltwiseOp EltwiseOp_MAX = - EltwiseParameter_EltwiseOp_EltwiseOp_MAX; - static const int EltwiseOp_ARRAYSIZE = - EltwiseParameter_EltwiseOp_EltwiseOp_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - EltwiseOp_descriptor() { - return EltwiseParameter_EltwiseOp_descriptor(); - } - static inline const ::std::string& EltwiseOp_Name(EltwiseOp value) { - return EltwiseParameter_EltwiseOp_Name(value); - } - static inline bool EltwiseOp_Parse(const ::std::string& name, - EltwiseOp* value) { - return EltwiseParameter_EltwiseOp_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // optional .caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM]; - inline bool has_operation() const; - inline void clear_operation(); - static const int kOperationFieldNumber = 1; - inline ::caffe::EltwiseParameter_EltwiseOp operation() const; - inline void set_operation(::caffe::EltwiseParameter_EltwiseOp value); - - // repeated float coeff = 2; - inline int coeff_size() const; - inline void clear_coeff(); - static const int kCoeffFieldNumber = 2; - inline float coeff(int index) const; - inline void set_coeff(int index, float value); - inline void add_coeff(float value); - inline const ::google::protobuf::RepeatedField< float >& - coeff() const; - inline ::google::protobuf::RepeatedField< float >* - mutable_coeff(); - - // optional bool stable_prod_grad = 3 [default = true]; - inline bool has_stable_prod_grad() const; - inline void clear_stable_prod_grad(); - static const int kStableProdGradFieldNumber = 3; - inline bool stable_prod_grad() const; - inline void set_stable_prod_grad(bool value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::RepeatedField< float > coeff_; - int operation_; - bool stable_prod_grad_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static EltwiseParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class ExpParameter : public ::google::protobuf::Message { - public: - ExpParameter(); - virtual ~ExpParameter(); - - ExpParameter(const ExpParameter& from); - - inline ExpParameter& operator=(const ExpParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ExpParameter& default_instance(); - - void Swap(ExpParameter* other); - - // implements Message ---------------------------------------------- - - ExpParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ExpParameter& from); - void MergeFrom(const ExpParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional float base = 1 [default = -1]; - inline bool has_base() const; - inline void clear_base(); - static const int kBaseFieldNumber = 1; - inline float base() const; - inline void set_base(float value); - - // optional float scale = 2 [default = 1]; - inline bool has_scale() const; - inline void clear_scale(); - static const int kScaleFieldNumber = 2; - inline float scale() const; - inline void set_scale(float value); - - // optional float shift = 3 [default = 0]; - inline bool has_shift() const; - inline void clear_shift(); - static const int kShiftFieldNumber = 3; - inline float shift() const; - inline void set_shift(float value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - float base_; - float scale_; - float shift_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static ExpParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class FlattenParameter : public ::google::protobuf::Message { - public: - FlattenParameter(); - virtual ~FlattenParameter(); - - FlattenParameter(const FlattenParameter& from); - - inline FlattenParameter& operator=(const FlattenParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const FlattenParameter& default_instance(); - - void Swap(FlattenParameter* other); - - // implements Message ---------------------------------------------- - - FlattenParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FlattenParameter& from); - void MergeFrom(const FlattenParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int32 axis = 1 [default = 1]; - inline bool has_axis() const; - inline void clear_axis(); - static const int kAxisFieldNumber = 1; - inline ::google::protobuf::int32 axis() const; - inline void set_axis(::google::protobuf::int32 value); - - // optional int32 end_axis = 2 [default = -1]; - inline bool has_end_axis() const; - inline void clear_end_axis(); - static const int kEndAxisFieldNumber = 2; - inline ::google::protobuf::int32 end_axis() const; - inline void set_end_axis(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::int32 axis_; - ::google::protobuf::int32 end_axis_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static FlattenParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class HDF5DataParameter : public ::google::protobuf::Message { - public: - HDF5DataParameter(); - virtual ~HDF5DataParameter(); - - HDF5DataParameter(const HDF5DataParameter& from); - - inline HDF5DataParameter& operator=(const HDF5DataParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const HDF5DataParameter& default_instance(); - - void Swap(HDF5DataParameter* other); - - // implements Message ---------------------------------------------- - - HDF5DataParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const HDF5DataParameter& from); - void MergeFrom(const HDF5DataParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string source = 1; - inline bool has_source() const; - inline void clear_source(); - static const int kSourceFieldNumber = 1; - inline const ::std::string& source() const; - inline void set_source(const ::std::string& value); - inline void set_source(const char* value); - inline void set_source(const char* value, size_t size); - inline ::std::string* mutable_source(); - inline ::std::string* release_source(); - inline void set_allocated_source(::std::string* source); - - // optional uint32 batch_size = 2; - inline bool has_batch_size() const; - inline void clear_batch_size(); - static const int kBatchSizeFieldNumber = 2; - inline ::google::protobuf::uint32 batch_size() const; - inline void set_batch_size(::google::protobuf::uint32 value); - - // optional bool shuffle = 3 [default = false]; - inline bool has_shuffle() const; - inline void clear_shuffle(); - static const int kShuffleFieldNumber = 3; - inline bool shuffle() const; - inline void set_shuffle(bool value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* source_; - ::google::protobuf::uint32 batch_size_; - bool shuffle_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static HDF5DataParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class HDF5OutputParameter : public ::google::protobuf::Message { - public: - HDF5OutputParameter(); - virtual ~HDF5OutputParameter(); - - HDF5OutputParameter(const HDF5OutputParameter& from); - - inline HDF5OutputParameter& operator=(const HDF5OutputParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const HDF5OutputParameter& default_instance(); - - void Swap(HDF5OutputParameter* other); - - // implements Message ---------------------------------------------- - - HDF5OutputParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const HDF5OutputParameter& from); - void MergeFrom(const HDF5OutputParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string file_name = 1; - inline bool has_file_name() const; - inline void clear_file_name(); - static const int kFileNameFieldNumber = 1; - inline const ::std::string& file_name() const; - inline void set_file_name(const ::std::string& value); - inline void set_file_name(const char* value); - inline void set_file_name(const char* value, size_t size); - inline ::std::string* mutable_file_name(); - inline ::std::string* release_file_name(); - inline void set_allocated_file_name(::std::string* file_name); - - // @@protoc_insertion_point(class_scope:caffe.HDF5OutputParameter) - private: - inline void set_has_file_name(); - inline void clear_has_file_name(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* file_name_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static HDF5OutputParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class HingeLossParameter : public ::google::protobuf::Message { - public: - HingeLossParameter(); - virtual ~HingeLossParameter(); - - HingeLossParameter(const HingeLossParameter& from); - - inline HingeLossParameter& operator=(const HingeLossParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const HingeLossParameter& default_instance(); - - void Swap(HingeLossParameter* other); - - // implements Message ---------------------------------------------- - - HingeLossParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const HingeLossParameter& from); - void MergeFrom(const HingeLossParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef HingeLossParameter_Norm Norm; - static const Norm L1 = HingeLossParameter_Norm_L1; - static const Norm L2 = HingeLossParameter_Norm_L2; - static inline bool Norm_IsValid(int value) { - return HingeLossParameter_Norm_IsValid(value); - } - static const Norm Norm_MIN = - HingeLossParameter_Norm_Norm_MIN; - static const Norm Norm_MAX = - HingeLossParameter_Norm_Norm_MAX; - static const int Norm_ARRAYSIZE = - HingeLossParameter_Norm_Norm_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Norm_descriptor() { - return HingeLossParameter_Norm_descriptor(); - } - static inline const ::std::string& Norm_Name(Norm value) { - return HingeLossParameter_Norm_Name(value); - } - static inline bool Norm_Parse(const ::std::string& name, - Norm* value) { - return HingeLossParameter_Norm_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // optional .caffe.HingeLossParameter.Norm norm = 1 [default = L1]; - inline bool has_norm() const; - inline void clear_norm(); - static const int kNormFieldNumber = 1; - inline ::caffe::HingeLossParameter_Norm norm() const; - inline void set_norm(::caffe::HingeLossParameter_Norm value); - - // @@protoc_insertion_point(class_scope:caffe.HingeLossParameter) - private: - inline void set_has_norm(); - inline void clear_has_norm(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - int norm_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static HingeLossParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class ImageDataParameter : public ::google::protobuf::Message { - public: - ImageDataParameter(); - virtual ~ImageDataParameter(); - - ImageDataParameter(const ImageDataParameter& from); - - inline ImageDataParameter& operator=(const ImageDataParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ImageDataParameter& default_instance(); - - void Swap(ImageDataParameter* other); - - // implements Message ---------------------------------------------- - - ImageDataParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ImageDataParameter& from); - void MergeFrom(const ImageDataParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string source = 1; - inline bool has_source() const; - inline void clear_source(); - static const int kSourceFieldNumber = 1; - inline const ::std::string& source() const; - inline void set_source(const ::std::string& value); - inline void set_source(const char* value); - inline void set_source(const char* value, size_t size); - inline ::std::string* mutable_source(); - inline ::std::string* release_source(); - inline void set_allocated_source(::std::string* source); - - // optional uint32 batch_size = 4; - inline bool has_batch_size() const; - inline void clear_batch_size(); - static const int kBatchSizeFieldNumber = 4; - inline ::google::protobuf::uint32 batch_size() const; - inline void set_batch_size(::google::protobuf::uint32 value); - - // optional uint32 rand_skip = 7 [default = 0]; - inline bool has_rand_skip() const; - inline void clear_rand_skip(); - static const int kRandSkipFieldNumber = 7; - inline ::google::protobuf::uint32 rand_skip() const; - inline void set_rand_skip(::google::protobuf::uint32 value); - - // optional bool shuffle = 8 [default = false]; - inline bool has_shuffle() const; - inline void clear_shuffle(); - static const int kShuffleFieldNumber = 8; - inline bool shuffle() const; - inline void set_shuffle(bool value); - - // optional uint32 new_height = 9 [default = 0]; - inline bool has_new_height() const; - inline void clear_new_height(); - static const int kNewHeightFieldNumber = 9; - inline ::google::protobuf::uint32 new_height() const; - inline void set_new_height(::google::protobuf::uint32 value); - - // optional uint32 new_width = 10 [default = 0]; - inline bool has_new_width() const; - inline void clear_new_width(); - static const int kNewWidthFieldNumber = 10; - inline ::google::protobuf::uint32 new_width() const; - inline void set_new_width(::google::protobuf::uint32 value); - - // optional bool is_color = 11 [default = true]; - inline bool has_is_color() const; - inline void clear_is_color(); - static const int kIsColorFieldNumber = 11; - inline bool is_color() const; - inline void set_is_color(bool value); - - // optional float scale = 2 [default = 1]; - inline bool has_scale() const; - inline void clear_scale(); - static const int kScaleFieldNumber = 2; - inline float scale() const; - inline void set_scale(float value); - - // optional string mean_file = 3; - inline bool has_mean_file() const; - inline void clear_mean_file(); - static const int kMeanFileFieldNumber = 3; - inline const ::std::string& mean_file() const; - inline void set_mean_file(const ::std::string& value); - inline void set_mean_file(const char* value); - inline void set_mean_file(const char* value, size_t size); - inline ::std::string* mutable_mean_file(); - inline ::std::string* release_mean_file(); - inline void set_allocated_mean_file(::std::string* mean_file); - - // optional uint32 crop_size = 5 [default = 0]; - inline bool has_crop_size() const; - inline void clear_crop_size(); - static const int kCropSizeFieldNumber = 5; - inline ::google::protobuf::uint32 crop_size() const; - inline void set_crop_size(::google::protobuf::uint32 value); - - // optional bool mirror = 6 [default = false]; - inline bool has_mirror() const; - inline void clear_mirror(); - static const int kMirrorFieldNumber = 6; - inline bool mirror() const; - inline void set_mirror(bool value); - - // optional string root_folder = 12 [default = ""]; - inline bool has_root_folder() const; - inline void clear_root_folder(); - static const int kRootFolderFieldNumber = 12; - inline const ::std::string& root_folder() const; - inline void set_root_folder(const ::std::string& value); - inline void set_root_folder(const char* value); - inline void set_root_folder(const char* value, size_t size); - inline ::std::string* mutable_root_folder(); - inline ::std::string* release_root_folder(); - inline void set_allocated_root_folder(::std::string* root_folder); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* source_; - ::google::protobuf::uint32 batch_size_; - ::google::protobuf::uint32 rand_skip_; - ::google::protobuf::uint32 new_height_; - ::google::protobuf::uint32 new_width_; - bool shuffle_; - bool is_color_; - bool mirror_; - float scale_; - ::std::string* mean_file_; - ::std::string* root_folder_; - ::google::protobuf::uint32 crop_size_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(12 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static ImageDataParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class InfogainLossParameter : public ::google::protobuf::Message { - public: - InfogainLossParameter(); - virtual ~InfogainLossParameter(); - - InfogainLossParameter(const InfogainLossParameter& from); - - inline InfogainLossParameter& operator=(const InfogainLossParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const InfogainLossParameter& default_instance(); - - void Swap(InfogainLossParameter* other); - - // implements Message ---------------------------------------------- - - InfogainLossParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const InfogainLossParameter& from); - void MergeFrom(const InfogainLossParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string source = 1; - inline bool has_source() const; - inline void clear_source(); - static const int kSourceFieldNumber = 1; - inline const ::std::string& source() const; - inline void set_source(const ::std::string& value); - inline void set_source(const char* value); - inline void set_source(const char* value, size_t size); - inline ::std::string* mutable_source(); - inline ::std::string* release_source(); - inline void set_allocated_source(::std::string* source); - - // @@protoc_insertion_point(class_scope:caffe.InfogainLossParameter) - private: - inline void set_has_source(); - inline void clear_has_source(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* source_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static InfogainLossParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class InnerProductParameter : public ::google::protobuf::Message { - public: - InnerProductParameter(); - virtual ~InnerProductParameter(); - - InnerProductParameter(const InnerProductParameter& from); - - inline InnerProductParameter& operator=(const InnerProductParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const InnerProductParameter& default_instance(); - - void Swap(InnerProductParameter* other); - - // implements Message ---------------------------------------------- - - InnerProductParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const InnerProductParameter& from); - void MergeFrom(const InnerProductParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional uint32 num_output = 1; - inline bool has_num_output() const; - inline void clear_num_output(); - static const int kNumOutputFieldNumber = 1; - inline ::google::protobuf::uint32 num_output() const; - inline void set_num_output(::google::protobuf::uint32 value); - - // optional bool bias_term = 2 [default = true]; - inline bool has_bias_term() const; - inline void clear_bias_term(); - static const int kBiasTermFieldNumber = 2; - inline bool bias_term() const; - inline void set_bias_term(bool value); - - // optional .caffe.FillerParameter weight_filler = 3; - inline bool has_weight_filler() const; - inline void clear_weight_filler(); - static const int kWeightFillerFieldNumber = 3; - inline const ::caffe::FillerParameter& weight_filler() const; - inline ::caffe::FillerParameter* mutable_weight_filler(); - inline ::caffe::FillerParameter* release_weight_filler(); - inline void set_allocated_weight_filler(::caffe::FillerParameter* weight_filler); - - // optional .caffe.FillerParameter bias_filler = 4; - inline bool has_bias_filler() const; - inline void clear_bias_filler(); - static const int kBiasFillerFieldNumber = 4; - inline const ::caffe::FillerParameter& bias_filler() const; - inline ::caffe::FillerParameter* mutable_bias_filler(); - inline ::caffe::FillerParameter* release_bias_filler(); - inline void set_allocated_bias_filler(::caffe::FillerParameter* bias_filler); - - // optional int32 axis = 5 [default = 1]; - inline bool has_axis() const; - inline void clear_axis(); - static const int kAxisFieldNumber = 5; - inline ::google::protobuf::int32 axis() const; - inline void set_axis(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 num_output_; - bool bias_term_; - ::caffe::FillerParameter* weight_filler_; - ::caffe::FillerParameter* bias_filler_; - ::google::protobuf::int32 axis_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static InnerProductParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class LogParameter : public ::google::protobuf::Message { - public: - LogParameter(); - virtual ~LogParameter(); - - LogParameter(const LogParameter& from); - - inline LogParameter& operator=(const LogParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const LogParameter& default_instance(); - - void Swap(LogParameter* other); - - // implements Message ---------------------------------------------- - - LogParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const LogParameter& from); - void MergeFrom(const LogParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional float base = 1 [default = -1]; - inline bool has_base() const; - inline void clear_base(); - static const int kBaseFieldNumber = 1; - inline float base() const; - inline void set_base(float value); - - // optional float scale = 2 [default = 1]; - inline bool has_scale() const; - inline void clear_scale(); - static const int kScaleFieldNumber = 2; - inline float scale() const; - inline void set_scale(float value); - - // optional float shift = 3 [default = 0]; - inline bool has_shift() const; - inline void clear_shift(); - static const int kShiftFieldNumber = 3; - inline float shift() const; - inline void set_shift(float value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - float base_; - float scale_; - float shift_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static LogParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class LRNParameter : public ::google::protobuf::Message { - public: - LRNParameter(); - virtual ~LRNParameter(); - - LRNParameter(const LRNParameter& from); - - inline LRNParameter& operator=(const LRNParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const LRNParameter& default_instance(); - - void Swap(LRNParameter* other); - - // implements Message ---------------------------------------------- - - LRNParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const LRNParameter& from); - void MergeFrom(const LRNParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef LRNParameter_NormRegion NormRegion; - static const NormRegion ACROSS_CHANNELS = LRNParameter_NormRegion_ACROSS_CHANNELS; - static const NormRegion WITHIN_CHANNEL = LRNParameter_NormRegion_WITHIN_CHANNEL; - static inline bool NormRegion_IsValid(int value) { - return LRNParameter_NormRegion_IsValid(value); - } - static const NormRegion NormRegion_MIN = - LRNParameter_NormRegion_NormRegion_MIN; - static const NormRegion NormRegion_MAX = - LRNParameter_NormRegion_NormRegion_MAX; - static const int NormRegion_ARRAYSIZE = - LRNParameter_NormRegion_NormRegion_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - NormRegion_descriptor() { - return LRNParameter_NormRegion_descriptor(); - } - static inline const ::std::string& NormRegion_Name(NormRegion value) { - return LRNParameter_NormRegion_Name(value); - } - static inline bool NormRegion_Parse(const ::std::string& name, - NormRegion* value) { - return LRNParameter_NormRegion_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // optional uint32 local_size = 1 [default = 5]; - inline bool has_local_size() const; - inline void clear_local_size(); - static const int kLocalSizeFieldNumber = 1; - inline ::google::protobuf::uint32 local_size() const; - inline void set_local_size(::google::protobuf::uint32 value); - - // optional float alpha = 2 [default = 1]; - inline bool has_alpha() const; - inline void clear_alpha(); - static const int kAlphaFieldNumber = 2; - inline float alpha() const; - inline void set_alpha(float value); - - // optional float beta = 3 [default = 0.75]; - inline bool has_beta() const; - inline void clear_beta(); - static const int kBetaFieldNumber = 3; - inline float beta() const; - inline void set_beta(float value); - - // optional .caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS]; - inline bool has_norm_region() const; - inline void clear_norm_region(); - static const int kNormRegionFieldNumber = 4; - inline ::caffe::LRNParameter_NormRegion norm_region() const; - inline void set_norm_region(::caffe::LRNParameter_NormRegion value); - - // optional float k = 5 [default = 1]; - inline bool has_k() const; - inline void clear_k(); - static const int kKFieldNumber = 5; - inline float k() const; - inline void set_k(float value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 local_size_; - float alpha_; - float beta_; - int norm_region_; - float k_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static LRNParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class MemoryDataParameter : public ::google::protobuf::Message { - public: - MemoryDataParameter(); - virtual ~MemoryDataParameter(); - - MemoryDataParameter(const MemoryDataParameter& from); - - inline MemoryDataParameter& operator=(const MemoryDataParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const MemoryDataParameter& default_instance(); - - void Swap(MemoryDataParameter* other); - - // implements Message ---------------------------------------------- - - MemoryDataParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemoryDataParameter& from); - void MergeFrom(const MemoryDataParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional uint32 batch_size = 1; - inline bool has_batch_size() const; - inline void clear_batch_size(); - static const int kBatchSizeFieldNumber = 1; - inline ::google::protobuf::uint32 batch_size() const; - inline void set_batch_size(::google::protobuf::uint32 value); - - // optional uint32 channels = 2; - inline bool has_channels() const; - inline void clear_channels(); - static const int kChannelsFieldNumber = 2; - inline ::google::protobuf::uint32 channels() const; - inline void set_channels(::google::protobuf::uint32 value); - - // optional uint32 height = 3; - inline bool has_height() const; - inline void clear_height(); - static const int kHeightFieldNumber = 3; - inline ::google::protobuf::uint32 height() const; - inline void set_height(::google::protobuf::uint32 value); - - // optional uint32 width = 4; - inline bool has_width() const; - inline void clear_width(); - static const int kWidthFieldNumber = 4; - inline ::google::protobuf::uint32 width() const; - inline void set_width(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 batch_size_; - ::google::protobuf::uint32 channels_; - ::google::protobuf::uint32 height_; - ::google::protobuf::uint32 width_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static MemoryDataParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class MVNParameter : public ::google::protobuf::Message { - public: - MVNParameter(); - virtual ~MVNParameter(); - - MVNParameter(const MVNParameter& from); - - inline MVNParameter& operator=(const MVNParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const MVNParameter& default_instance(); - - void Swap(MVNParameter* other); - - // implements Message ---------------------------------------------- - - MVNParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MVNParameter& from); - void MergeFrom(const MVNParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional bool normalize_variance = 1 [default = true]; - inline bool has_normalize_variance() const; - inline void clear_normalize_variance(); - static const int kNormalizeVarianceFieldNumber = 1; - inline bool normalize_variance() const; - inline void set_normalize_variance(bool value); - - // optional bool across_channels = 2 [default = false]; - inline bool has_across_channels() const; - inline void clear_across_channels(); - static const int kAcrossChannelsFieldNumber = 2; - inline bool across_channels() const; - inline void set_across_channels(bool value); - - // optional float eps = 3 [default = 1e-09]; - inline bool has_eps() const; - inline void clear_eps(); - static const int kEpsFieldNumber = 3; - inline float eps() const; - inline void set_eps(float value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - bool normalize_variance_; - bool across_channels_; - float eps_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static MVNParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class PoolingParameter : public ::google::protobuf::Message { - public: - PoolingParameter(); - virtual ~PoolingParameter(); - - PoolingParameter(const PoolingParameter& from); - - inline PoolingParameter& operator=(const PoolingParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const PoolingParameter& default_instance(); - - void Swap(PoolingParameter* other); - - // implements Message ---------------------------------------------- - - PoolingParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const PoolingParameter& from); - void MergeFrom(const PoolingParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef PoolingParameter_PoolMethod PoolMethod; - static const PoolMethod MAX = PoolingParameter_PoolMethod_MAX; - static const PoolMethod AVE = PoolingParameter_PoolMethod_AVE; - static const PoolMethod STOCHASTIC = PoolingParameter_PoolMethod_STOCHASTIC; - static inline bool PoolMethod_IsValid(int value) { - return PoolingParameter_PoolMethod_IsValid(value); - } - static const PoolMethod PoolMethod_MIN = - PoolingParameter_PoolMethod_PoolMethod_MIN; - static const PoolMethod PoolMethod_MAX = - PoolingParameter_PoolMethod_PoolMethod_MAX; - static const int PoolMethod_ARRAYSIZE = - PoolingParameter_PoolMethod_PoolMethod_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - PoolMethod_descriptor() { - return PoolingParameter_PoolMethod_descriptor(); - } - static inline const ::std::string& PoolMethod_Name(PoolMethod value) { - return PoolingParameter_PoolMethod_Name(value); - } - static inline bool PoolMethod_Parse(const ::std::string& name, - PoolMethod* value) { - return PoolingParameter_PoolMethod_Parse(name, value); - } - - typedef PoolingParameter_Engine Engine; - static const Engine DEFAULT = PoolingParameter_Engine_DEFAULT; - static const Engine CAFFE = PoolingParameter_Engine_CAFFE; - static const Engine CUDNN = PoolingParameter_Engine_CUDNN; - static inline bool Engine_IsValid(int value) { - return PoolingParameter_Engine_IsValid(value); - } - static const Engine Engine_MIN = - PoolingParameter_Engine_Engine_MIN; - static const Engine Engine_MAX = - PoolingParameter_Engine_Engine_MAX; - static const int Engine_ARRAYSIZE = - PoolingParameter_Engine_Engine_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Engine_descriptor() { - return PoolingParameter_Engine_descriptor(); - } - static inline const ::std::string& Engine_Name(Engine value) { - return PoolingParameter_Engine_Name(value); - } - static inline bool Engine_Parse(const ::std::string& name, - Engine* value) { - return PoolingParameter_Engine_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // optional .caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX]; - inline bool has_pool() const; - inline void clear_pool(); - static const int kPoolFieldNumber = 1; - inline ::caffe::PoolingParameter_PoolMethod pool() const; - inline void set_pool(::caffe::PoolingParameter_PoolMethod value); - - // optional uint32 pad = 4 [default = 0]; - inline bool has_pad() const; - inline void clear_pad(); - static const int kPadFieldNumber = 4; - inline ::google::protobuf::uint32 pad() const; - inline void set_pad(::google::protobuf::uint32 value); - - // optional uint32 pad_h = 9 [default = 0]; - inline bool has_pad_h() const; - inline void clear_pad_h(); - static const int kPadHFieldNumber = 9; - inline ::google::protobuf::uint32 pad_h() const; - inline void set_pad_h(::google::protobuf::uint32 value); - - // optional uint32 pad_w = 10 [default = 0]; - inline bool has_pad_w() const; - inline void clear_pad_w(); - static const int kPadWFieldNumber = 10; - inline ::google::protobuf::uint32 pad_w() const; - inline void set_pad_w(::google::protobuf::uint32 value); - - // optional uint32 kernel_size = 2; - inline bool has_kernel_size() const; - inline void clear_kernel_size(); - static const int kKernelSizeFieldNumber = 2; - inline ::google::protobuf::uint32 kernel_size() const; - inline void set_kernel_size(::google::protobuf::uint32 value); - - // optional uint32 kernel_h = 5; - inline bool has_kernel_h() const; - inline void clear_kernel_h(); - static const int kKernelHFieldNumber = 5; - inline ::google::protobuf::uint32 kernel_h() const; - inline void set_kernel_h(::google::protobuf::uint32 value); - - // optional uint32 kernel_w = 6; - inline bool has_kernel_w() const; - inline void clear_kernel_w(); - static const int kKernelWFieldNumber = 6; - inline ::google::protobuf::uint32 kernel_w() const; - inline void set_kernel_w(::google::protobuf::uint32 value); - - // optional uint32 stride = 3 [default = 1]; - inline bool has_stride() const; - inline void clear_stride(); - static const int kStrideFieldNumber = 3; - inline ::google::protobuf::uint32 stride() const; - inline void set_stride(::google::protobuf::uint32 value); - - // optional uint32 stride_h = 7; - inline bool has_stride_h() const; - inline void clear_stride_h(); - static const int kStrideHFieldNumber = 7; - inline ::google::protobuf::uint32 stride_h() const; - inline void set_stride_h(::google::protobuf::uint32 value); - - // optional uint32 stride_w = 8; - inline bool has_stride_w() const; - inline void clear_stride_w(); - static const int kStrideWFieldNumber = 8; - inline ::google::protobuf::uint32 stride_w() const; - inline void set_stride_w(::google::protobuf::uint32 value); - - // optional .caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT]; - inline bool has_engine() const; - inline void clear_engine(); - static const int kEngineFieldNumber = 11; - inline ::caffe::PoolingParameter_Engine engine() const; - inline void set_engine(::caffe::PoolingParameter_Engine value); - - // optional bool global_pooling = 12 [default = false]; - inline bool has_global_pooling() const; - inline void clear_global_pooling(); - static const int kGlobalPoolingFieldNumber = 12; - inline bool global_pooling() const; - inline void set_global_pooling(bool value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - int pool_; - ::google::protobuf::uint32 pad_; - ::google::protobuf::uint32 pad_h_; - ::google::protobuf::uint32 pad_w_; - ::google::protobuf::uint32 kernel_size_; - ::google::protobuf::uint32 kernel_h_; - ::google::protobuf::uint32 kernel_w_; - ::google::protobuf::uint32 stride_; - ::google::protobuf::uint32 stride_h_; - ::google::protobuf::uint32 stride_w_; - int engine_; - bool global_pooling_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(12 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static PoolingParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class PowerParameter : public ::google::protobuf::Message { - public: - PowerParameter(); - virtual ~PowerParameter(); - - PowerParameter(const PowerParameter& from); - - inline PowerParameter& operator=(const PowerParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const PowerParameter& default_instance(); - - void Swap(PowerParameter* other); - - // implements Message ---------------------------------------------- - - PowerParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const PowerParameter& from); - void MergeFrom(const PowerParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional float power = 1 [default = 1]; - inline bool has_power() const; - inline void clear_power(); - static const int kPowerFieldNumber = 1; - inline float power() const; - inline void set_power(float value); - - // optional float scale = 2 [default = 1]; - inline bool has_scale() const; - inline void clear_scale(); - static const int kScaleFieldNumber = 2; - inline float scale() const; - inline void set_scale(float value); - - // optional float shift = 3 [default = 0]; - inline bool has_shift() const; - inline void clear_shift(); - static const int kShiftFieldNumber = 3; - inline float shift() const; - inline void set_shift(float value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - float power_; - float scale_; - float shift_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static PowerParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class PythonParameter : public ::google::protobuf::Message { - public: - PythonParameter(); - virtual ~PythonParameter(); - - PythonParameter(const PythonParameter& from); - - inline PythonParameter& operator=(const PythonParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const PythonParameter& default_instance(); - - void Swap(PythonParameter* other); - - // implements Message ---------------------------------------------- - - PythonParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const PythonParameter& from); - void MergeFrom(const PythonParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string module = 1; - inline bool has_module() const; - inline void clear_module(); - static const int kModuleFieldNumber = 1; - inline const ::std::string& module() const; - inline void set_module(const ::std::string& value); - inline void set_module(const char* value); - inline void set_module(const char* value, size_t size); - inline ::std::string* mutable_module(); - inline ::std::string* release_module(); - inline void set_allocated_module(::std::string* module); - - // optional string layer = 2; - inline bool has_layer() const; - inline void clear_layer(); - static const int kLayerFieldNumber = 2; - inline const ::std::string& layer() const; - inline void set_layer(const ::std::string& value); - inline void set_layer(const char* value); - inline void set_layer(const char* value, size_t size); - inline ::std::string* mutable_layer(); - inline ::std::string* release_layer(); - inline void set_allocated_layer(::std::string* layer); - - // @@protoc_insertion_point(class_scope:caffe.PythonParameter) - private: - inline void set_has_module(); - inline void clear_has_module(); - inline void set_has_layer(); - inline void clear_has_layer(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* module_; - ::std::string* layer_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static PythonParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class ReductionParameter : public ::google::protobuf::Message { - public: - ReductionParameter(); - virtual ~ReductionParameter(); - - ReductionParameter(const ReductionParameter& from); - - inline ReductionParameter& operator=(const ReductionParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ReductionParameter& default_instance(); - - void Swap(ReductionParameter* other); - - // implements Message ---------------------------------------------- - - ReductionParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ReductionParameter& from); - void MergeFrom(const ReductionParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef ReductionParameter_ReductionOp ReductionOp; - static const ReductionOp SUM = ReductionParameter_ReductionOp_SUM; - static const ReductionOp ASUM = ReductionParameter_ReductionOp_ASUM; - static const ReductionOp SUMSQ = ReductionParameter_ReductionOp_SUMSQ; - static const ReductionOp MEAN = ReductionParameter_ReductionOp_MEAN; - static inline bool ReductionOp_IsValid(int value) { - return ReductionParameter_ReductionOp_IsValid(value); - } - static const ReductionOp ReductionOp_MIN = - ReductionParameter_ReductionOp_ReductionOp_MIN; - static const ReductionOp ReductionOp_MAX = - ReductionParameter_ReductionOp_ReductionOp_MAX; - static const int ReductionOp_ARRAYSIZE = - ReductionParameter_ReductionOp_ReductionOp_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - ReductionOp_descriptor() { - return ReductionParameter_ReductionOp_descriptor(); - } - static inline const ::std::string& ReductionOp_Name(ReductionOp value) { - return ReductionParameter_ReductionOp_Name(value); - } - static inline bool ReductionOp_Parse(const ::std::string& name, - ReductionOp* value) { - return ReductionParameter_ReductionOp_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // optional .caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM]; - inline bool has_operation() const; - inline void clear_operation(); - static const int kOperationFieldNumber = 1; - inline ::caffe::ReductionParameter_ReductionOp operation() const; - inline void set_operation(::caffe::ReductionParameter_ReductionOp value); - - // optional int32 axis = 2 [default = 0]; - inline bool has_axis() const; - inline void clear_axis(); - static const int kAxisFieldNumber = 2; - inline ::google::protobuf::int32 axis() const; - inline void set_axis(::google::protobuf::int32 value); - - // optional float coeff = 3 [default = 1]; - inline bool has_coeff() const; - inline void clear_coeff(); - static const int kCoeffFieldNumber = 3; - inline float coeff() const; - inline void set_coeff(float value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - int operation_; - ::google::protobuf::int32 axis_; - float coeff_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static ReductionParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class ReLUParameter : public ::google::protobuf::Message { - public: - ReLUParameter(); - virtual ~ReLUParameter(); - - ReLUParameter(const ReLUParameter& from); - - inline ReLUParameter& operator=(const ReLUParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ReLUParameter& default_instance(); - - void Swap(ReLUParameter* other); - - // implements Message ---------------------------------------------- - - ReLUParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ReLUParameter& from); - void MergeFrom(const ReLUParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef ReLUParameter_Engine Engine; - static const Engine DEFAULT = ReLUParameter_Engine_DEFAULT; - static const Engine CAFFE = ReLUParameter_Engine_CAFFE; - static const Engine CUDNN = ReLUParameter_Engine_CUDNN; - static inline bool Engine_IsValid(int value) { - return ReLUParameter_Engine_IsValid(value); - } - static const Engine Engine_MIN = - ReLUParameter_Engine_Engine_MIN; - static const Engine Engine_MAX = - ReLUParameter_Engine_Engine_MAX; - static const int Engine_ARRAYSIZE = - ReLUParameter_Engine_Engine_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Engine_descriptor() { - return ReLUParameter_Engine_descriptor(); - } - static inline const ::std::string& Engine_Name(Engine value) { - return ReLUParameter_Engine_Name(value); - } - static inline bool Engine_Parse(const ::std::string& name, - Engine* value) { - return ReLUParameter_Engine_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // optional float negative_slope = 1 [default = 0]; - inline bool has_negative_slope() const; - inline void clear_negative_slope(); - static const int kNegativeSlopeFieldNumber = 1; - inline float negative_slope() const; - inline void set_negative_slope(float value); - - // optional .caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT]; - inline bool has_engine() const; - inline void clear_engine(); - static const int kEngineFieldNumber = 2; - inline ::caffe::ReLUParameter_Engine engine() const; - inline void set_engine(::caffe::ReLUParameter_Engine value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - float negative_slope_; - int engine_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static ReLUParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class ReshapeParameter : public ::google::protobuf::Message { - public: - ReshapeParameter(); - virtual ~ReshapeParameter(); - - ReshapeParameter(const ReshapeParameter& from); - - inline ReshapeParameter& operator=(const ReshapeParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ReshapeParameter& default_instance(); - - void Swap(ReshapeParameter* other); - - // implements Message ---------------------------------------------- - - ReshapeParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ReshapeParameter& from); - void MergeFrom(const ReshapeParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .caffe.BlobShape shape = 1; - inline bool has_shape() const; - inline void clear_shape(); - static const int kShapeFieldNumber = 1; - inline const ::caffe::BlobShape& shape() const; - inline ::caffe::BlobShape* mutable_shape(); - inline ::caffe::BlobShape* release_shape(); - inline void set_allocated_shape(::caffe::BlobShape* shape); - - // optional int32 axis = 2 [default = 0]; - inline bool has_axis() const; - inline void clear_axis(); - static const int kAxisFieldNumber = 2; - inline ::google::protobuf::int32 axis() const; - inline void set_axis(::google::protobuf::int32 value); - - // optional int32 num_axes = 3 [default = -1]; - inline bool has_num_axes() const; - inline void clear_num_axes(); - static const int kNumAxesFieldNumber = 3; - inline ::google::protobuf::int32 num_axes() const; - inline void set_num_axes(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::caffe::BlobShape* shape_; - ::google::protobuf::int32 axis_; - ::google::protobuf::int32 num_axes_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static ReshapeParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class SigmoidParameter : public ::google::protobuf::Message { - public: - SigmoidParameter(); - virtual ~SigmoidParameter(); - - SigmoidParameter(const SigmoidParameter& from); - - inline SigmoidParameter& operator=(const SigmoidParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SigmoidParameter& default_instance(); - - void Swap(SigmoidParameter* other); - - // implements Message ---------------------------------------------- - - SigmoidParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SigmoidParameter& from); - void MergeFrom(const SigmoidParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef SigmoidParameter_Engine Engine; - static const Engine DEFAULT = SigmoidParameter_Engine_DEFAULT; - static const Engine CAFFE = SigmoidParameter_Engine_CAFFE; - static const Engine CUDNN = SigmoidParameter_Engine_CUDNN; - static inline bool Engine_IsValid(int value) { - return SigmoidParameter_Engine_IsValid(value); - } - static const Engine Engine_MIN = - SigmoidParameter_Engine_Engine_MIN; - static const Engine Engine_MAX = - SigmoidParameter_Engine_Engine_MAX; - static const int Engine_ARRAYSIZE = - SigmoidParameter_Engine_Engine_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Engine_descriptor() { - return SigmoidParameter_Engine_descriptor(); - } - static inline const ::std::string& Engine_Name(Engine value) { - return SigmoidParameter_Engine_Name(value); - } - static inline bool Engine_Parse(const ::std::string& name, - Engine* value) { - return SigmoidParameter_Engine_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // optional .caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT]; - inline bool has_engine() const; - inline void clear_engine(); - static const int kEngineFieldNumber = 1; - inline ::caffe::SigmoidParameter_Engine engine() const; - inline void set_engine(::caffe::SigmoidParameter_Engine value); - - // @@protoc_insertion_point(class_scope:caffe.SigmoidParameter) - private: - inline void set_has_engine(); - inline void clear_has_engine(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - int engine_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static SigmoidParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class SliceParameter : public ::google::protobuf::Message { - public: - SliceParameter(); - virtual ~SliceParameter(); - - SliceParameter(const SliceParameter& from); - - inline SliceParameter& operator=(const SliceParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SliceParameter& default_instance(); - - void Swap(SliceParameter* other); - - // implements Message ---------------------------------------------- - - SliceParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SliceParameter& from); - void MergeFrom(const SliceParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int32 axis = 3 [default = 1]; - inline bool has_axis() const; - inline void clear_axis(); - static const int kAxisFieldNumber = 3; - inline ::google::protobuf::int32 axis() const; - inline void set_axis(::google::protobuf::int32 value); - - // repeated uint32 slice_point = 2; - inline int slice_point_size() const; - inline void clear_slice_point(); - static const int kSlicePointFieldNumber = 2; - inline ::google::protobuf::uint32 slice_point(int index) const; - inline void set_slice_point(int index, ::google::protobuf::uint32 value); - inline void add_slice_point(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - slice_point() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_slice_point(); - - // optional uint32 slice_dim = 1 [default = 1]; - inline bool has_slice_dim() const; - inline void clear_slice_dim(); - static const int kSliceDimFieldNumber = 1; - inline ::google::protobuf::uint32 slice_dim() const; - inline void set_slice_dim(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > slice_point_; - ::google::protobuf::int32 axis_; - ::google::protobuf::uint32 slice_dim_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static SliceParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class SoftmaxParameter : public ::google::protobuf::Message { - public: - SoftmaxParameter(); - virtual ~SoftmaxParameter(); - - SoftmaxParameter(const SoftmaxParameter& from); - - inline SoftmaxParameter& operator=(const SoftmaxParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SoftmaxParameter& default_instance(); - - void Swap(SoftmaxParameter* other); - - // implements Message ---------------------------------------------- - - SoftmaxParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SoftmaxParameter& from); - void MergeFrom(const SoftmaxParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef SoftmaxParameter_Engine Engine; - static const Engine DEFAULT = SoftmaxParameter_Engine_DEFAULT; - static const Engine CAFFE = SoftmaxParameter_Engine_CAFFE; - static const Engine CUDNN = SoftmaxParameter_Engine_CUDNN; - static inline bool Engine_IsValid(int value) { - return SoftmaxParameter_Engine_IsValid(value); - } - static const Engine Engine_MIN = - SoftmaxParameter_Engine_Engine_MIN; - static const Engine Engine_MAX = - SoftmaxParameter_Engine_Engine_MAX; - static const int Engine_ARRAYSIZE = - SoftmaxParameter_Engine_Engine_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Engine_descriptor() { - return SoftmaxParameter_Engine_descriptor(); - } - static inline const ::std::string& Engine_Name(Engine value) { - return SoftmaxParameter_Engine_Name(value); - } - static inline bool Engine_Parse(const ::std::string& name, - Engine* value) { - return SoftmaxParameter_Engine_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // optional .caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT]; - inline bool has_engine() const; - inline void clear_engine(); - static const int kEngineFieldNumber = 1; - inline ::caffe::SoftmaxParameter_Engine engine() const; - inline void set_engine(::caffe::SoftmaxParameter_Engine value); - - // optional int32 axis = 2 [default = 1]; - inline bool has_axis() const; - inline void clear_axis(); - static const int kAxisFieldNumber = 2; - inline ::google::protobuf::int32 axis() const; - inline void set_axis(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:caffe.SoftmaxParameter) - private: - inline void set_has_engine(); - inline void clear_has_engine(); - inline void set_has_axis(); - inline void clear_has_axis(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - int engine_; - ::google::protobuf::int32 axis_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static SoftmaxParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class TanHParameter : public ::google::protobuf::Message { - public: - TanHParameter(); - virtual ~TanHParameter(); - - TanHParameter(const TanHParameter& from); - - inline TanHParameter& operator=(const TanHParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const TanHParameter& default_instance(); - - void Swap(TanHParameter* other); - - // implements Message ---------------------------------------------- - - TanHParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const TanHParameter& from); - void MergeFrom(const TanHParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef TanHParameter_Engine Engine; - static const Engine DEFAULT = TanHParameter_Engine_DEFAULT; - static const Engine CAFFE = TanHParameter_Engine_CAFFE; - static const Engine CUDNN = TanHParameter_Engine_CUDNN; - static inline bool Engine_IsValid(int value) { - return TanHParameter_Engine_IsValid(value); - } - static const Engine Engine_MIN = - TanHParameter_Engine_Engine_MIN; - static const Engine Engine_MAX = - TanHParameter_Engine_Engine_MAX; - static const int Engine_ARRAYSIZE = - TanHParameter_Engine_Engine_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Engine_descriptor() { - return TanHParameter_Engine_descriptor(); - } - static inline const ::std::string& Engine_Name(Engine value) { - return TanHParameter_Engine_Name(value); - } - static inline bool Engine_Parse(const ::std::string& name, - Engine* value) { - return TanHParameter_Engine_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // optional .caffe.TanHParameter.Engine engine = 1 [default = DEFAULT]; - inline bool has_engine() const; - inline void clear_engine(); - static const int kEngineFieldNumber = 1; - inline ::caffe::TanHParameter_Engine engine() const; - inline void set_engine(::caffe::TanHParameter_Engine value); - - // @@protoc_insertion_point(class_scope:caffe.TanHParameter) - private: - inline void set_has_engine(); - inline void clear_has_engine(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - int engine_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static TanHParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class ThresholdParameter : public ::google::protobuf::Message { - public: - ThresholdParameter(); - virtual ~ThresholdParameter(); - - ThresholdParameter(const ThresholdParameter& from); - - inline ThresholdParameter& operator=(const ThresholdParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ThresholdParameter& default_instance(); - - void Swap(ThresholdParameter* other); - - // implements Message ---------------------------------------------- - - ThresholdParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ThresholdParameter& from); - void MergeFrom(const ThresholdParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional float threshold = 1 [default = 0]; - inline bool has_threshold() const; - inline void clear_threshold(); - static const int kThresholdFieldNumber = 1; - inline float threshold() const; - inline void set_threshold(float value); - - // @@protoc_insertion_point(class_scope:caffe.ThresholdParameter) - private: - inline void set_has_threshold(); - inline void clear_has_threshold(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - float threshold_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static ThresholdParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class WindowDataParameter : public ::google::protobuf::Message { - public: - WindowDataParameter(); - virtual ~WindowDataParameter(); - - WindowDataParameter(const WindowDataParameter& from); - - inline WindowDataParameter& operator=(const WindowDataParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const WindowDataParameter& default_instance(); - - void Swap(WindowDataParameter* other); - - // implements Message ---------------------------------------------- - - WindowDataParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const WindowDataParameter& from); - void MergeFrom(const WindowDataParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string source = 1; - inline bool has_source() const; - inline void clear_source(); - static const int kSourceFieldNumber = 1; - inline const ::std::string& source() const; - inline void set_source(const ::std::string& value); - inline void set_source(const char* value); - inline void set_source(const char* value, size_t size); - inline ::std::string* mutable_source(); - inline ::std::string* release_source(); - inline void set_allocated_source(::std::string* source); - - // optional float scale = 2 [default = 1]; - inline bool has_scale() const; - inline void clear_scale(); - static const int kScaleFieldNumber = 2; - inline float scale() const; - inline void set_scale(float value); - - // optional string mean_file = 3; - inline bool has_mean_file() const; - inline void clear_mean_file(); - static const int kMeanFileFieldNumber = 3; - inline const ::std::string& mean_file() const; - inline void set_mean_file(const ::std::string& value); - inline void set_mean_file(const char* value); - inline void set_mean_file(const char* value, size_t size); - inline ::std::string* mutable_mean_file(); - inline ::std::string* release_mean_file(); - inline void set_allocated_mean_file(::std::string* mean_file); - - // optional uint32 batch_size = 4; - inline bool has_batch_size() const; - inline void clear_batch_size(); - static const int kBatchSizeFieldNumber = 4; - inline ::google::protobuf::uint32 batch_size() const; - inline void set_batch_size(::google::protobuf::uint32 value); - - // optional uint32 crop_size = 5 [default = 0]; - inline bool has_crop_size() const; - inline void clear_crop_size(); - static const int kCropSizeFieldNumber = 5; - inline ::google::protobuf::uint32 crop_size() const; - inline void set_crop_size(::google::protobuf::uint32 value); - - // optional bool mirror = 6 [default = false]; - inline bool has_mirror() const; - inline void clear_mirror(); - static const int kMirrorFieldNumber = 6; - inline bool mirror() const; - inline void set_mirror(bool value); - - // optional float fg_threshold = 7 [default = 0.5]; - inline bool has_fg_threshold() const; - inline void clear_fg_threshold(); - static const int kFgThresholdFieldNumber = 7; - inline float fg_threshold() const; - inline void set_fg_threshold(float value); - - // optional float bg_threshold = 8 [default = 0.5]; - inline bool has_bg_threshold() const; - inline void clear_bg_threshold(); - static const int kBgThresholdFieldNumber = 8; - inline float bg_threshold() const; - inline void set_bg_threshold(float value); - - // optional float fg_fraction = 9 [default = 0.25]; - inline bool has_fg_fraction() const; - inline void clear_fg_fraction(); - static const int kFgFractionFieldNumber = 9; - inline float fg_fraction() const; - inline void set_fg_fraction(float value); - - // optional uint32 context_pad = 10 [default = 0]; - inline bool has_context_pad() const; - inline void clear_context_pad(); - static const int kContextPadFieldNumber = 10; - inline ::google::protobuf::uint32 context_pad() const; - inline void set_context_pad(::google::protobuf::uint32 value); - - // optional string crop_mode = 11 [default = "warp"]; - inline bool has_crop_mode() const; - inline void clear_crop_mode(); - static const int kCropModeFieldNumber = 11; - inline const ::std::string& crop_mode() const; - inline void set_crop_mode(const ::std::string& value); - inline void set_crop_mode(const char* value); - inline void set_crop_mode(const char* value, size_t size); - inline ::std::string* mutable_crop_mode(); - inline ::std::string* release_crop_mode(); - inline void set_allocated_crop_mode(::std::string* crop_mode); - - // optional bool cache_images = 12 [default = false]; - inline bool has_cache_images() const; - inline void clear_cache_images(); - static const int kCacheImagesFieldNumber = 12; - inline bool cache_images() const; - inline void set_cache_images(bool value); - - // optional string root_folder = 13 [default = ""]; - inline bool has_root_folder() const; - inline void clear_root_folder(); - static const int kRootFolderFieldNumber = 13; - inline const ::std::string& root_folder() const; - inline void set_root_folder(const ::std::string& value); - inline void set_root_folder(const char* value); - inline void set_root_folder(const char* value, size_t size); - inline ::std::string* mutable_root_folder(); - inline ::std::string* release_root_folder(); - inline void set_allocated_root_folder(::std::string* root_folder); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* source_; - ::std::string* mean_file_; - float scale_; - ::google::protobuf::uint32 batch_size_; - ::google::protobuf::uint32 crop_size_; - float fg_threshold_; - float bg_threshold_; - float fg_fraction_; - bool mirror_; - bool cache_images_; - ::google::protobuf::uint32 context_pad_; - ::std::string* crop_mode_; - static ::std::string* _default_crop_mode_; - ::std::string* root_folder_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(13 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static WindowDataParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class SPPParameter : public ::google::protobuf::Message { - public: - SPPParameter(); - virtual ~SPPParameter(); - - SPPParameter(const SPPParameter& from); - - inline SPPParameter& operator=(const SPPParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SPPParameter& default_instance(); - - void Swap(SPPParameter* other); - - // implements Message ---------------------------------------------- - - SPPParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SPPParameter& from); - void MergeFrom(const SPPParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef SPPParameter_PoolMethod PoolMethod; - static const PoolMethod MAX = SPPParameter_PoolMethod_MAX; - static const PoolMethod AVE = SPPParameter_PoolMethod_AVE; - static const PoolMethod STOCHASTIC = SPPParameter_PoolMethod_STOCHASTIC; - static inline bool PoolMethod_IsValid(int value) { - return SPPParameter_PoolMethod_IsValid(value); - } - static const PoolMethod PoolMethod_MIN = - SPPParameter_PoolMethod_PoolMethod_MIN; - static const PoolMethod PoolMethod_MAX = - SPPParameter_PoolMethod_PoolMethod_MAX; - static const int PoolMethod_ARRAYSIZE = - SPPParameter_PoolMethod_PoolMethod_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - PoolMethod_descriptor() { - return SPPParameter_PoolMethod_descriptor(); - } - static inline const ::std::string& PoolMethod_Name(PoolMethod value) { - return SPPParameter_PoolMethod_Name(value); - } - static inline bool PoolMethod_Parse(const ::std::string& name, - PoolMethod* value) { - return SPPParameter_PoolMethod_Parse(name, value); - } - - typedef SPPParameter_Engine Engine; - static const Engine DEFAULT = SPPParameter_Engine_DEFAULT; - static const Engine CAFFE = SPPParameter_Engine_CAFFE; - static const Engine CUDNN = SPPParameter_Engine_CUDNN; - static inline bool Engine_IsValid(int value) { - return SPPParameter_Engine_IsValid(value); - } - static const Engine Engine_MIN = - SPPParameter_Engine_Engine_MIN; - static const Engine Engine_MAX = - SPPParameter_Engine_Engine_MAX; - static const int Engine_ARRAYSIZE = - SPPParameter_Engine_Engine_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Engine_descriptor() { - return SPPParameter_Engine_descriptor(); - } - static inline const ::std::string& Engine_Name(Engine value) { - return SPPParameter_Engine_Name(value); - } - static inline bool Engine_Parse(const ::std::string& name, - Engine* value) { - return SPPParameter_Engine_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // optional uint32 pyramid_height = 1; - inline bool has_pyramid_height() const; - inline void clear_pyramid_height(); - static const int kPyramidHeightFieldNumber = 1; - inline ::google::protobuf::uint32 pyramid_height() const; - inline void set_pyramid_height(::google::protobuf::uint32 value); - - // optional .caffe.SPPParameter.PoolMethod pool = 2 [default = MAX]; - inline bool has_pool() const; - inline void clear_pool(); - static const int kPoolFieldNumber = 2; - inline ::caffe::SPPParameter_PoolMethod pool() const; - inline void set_pool(::caffe::SPPParameter_PoolMethod value); - - // optional .caffe.SPPParameter.Engine engine = 6 [default = DEFAULT]; - inline bool has_engine() const; - inline void clear_engine(); - static const int kEngineFieldNumber = 6; - inline ::caffe::SPPParameter_Engine engine() const; - inline void set_engine(::caffe::SPPParameter_Engine value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 pyramid_height_; - int pool_; - int engine_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static SPPParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class V1LayerParameter : public ::google::protobuf::Message { - public: - V1LayerParameter(); - virtual ~V1LayerParameter(); - - V1LayerParameter(const V1LayerParameter& from); - - inline V1LayerParameter& operator=(const V1LayerParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const V1LayerParameter& default_instance(); - - void Swap(V1LayerParameter* other); - - // implements Message ---------------------------------------------- - - V1LayerParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const V1LayerParameter& from); - void MergeFrom(const V1LayerParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef V1LayerParameter_LayerType LayerType; - static const LayerType NONE = V1LayerParameter_LayerType_NONE; - static const LayerType ABSVAL = V1LayerParameter_LayerType_ABSVAL; - static const LayerType ACCURACY = V1LayerParameter_LayerType_ACCURACY; - static const LayerType ARGMAX = V1LayerParameter_LayerType_ARGMAX; - static const LayerType BNLL = V1LayerParameter_LayerType_BNLL; - static const LayerType CONCAT = V1LayerParameter_LayerType_CONCAT; - static const LayerType CONTRASTIVE_LOSS = V1LayerParameter_LayerType_CONTRASTIVE_LOSS; - static const LayerType CONVOLUTION = V1LayerParameter_LayerType_CONVOLUTION; - static const LayerType DATA = V1LayerParameter_LayerType_DATA; - static const LayerType DECONVOLUTION = V1LayerParameter_LayerType_DECONVOLUTION; - static const LayerType DROPOUT = V1LayerParameter_LayerType_DROPOUT; - static const LayerType DUMMY_DATA = V1LayerParameter_LayerType_DUMMY_DATA; - static const LayerType EUCLIDEAN_LOSS = V1LayerParameter_LayerType_EUCLIDEAN_LOSS; - static const LayerType ELTWISE = V1LayerParameter_LayerType_ELTWISE; - static const LayerType EXP = V1LayerParameter_LayerType_EXP; - static const LayerType FLATTEN = V1LayerParameter_LayerType_FLATTEN; - static const LayerType HDF5_DATA = V1LayerParameter_LayerType_HDF5_DATA; - static const LayerType HDF5_OUTPUT = V1LayerParameter_LayerType_HDF5_OUTPUT; - static const LayerType HINGE_LOSS = V1LayerParameter_LayerType_HINGE_LOSS; - static const LayerType IM2COL = V1LayerParameter_LayerType_IM2COL; - static const LayerType IMAGE_DATA = V1LayerParameter_LayerType_IMAGE_DATA; - static const LayerType INFOGAIN_LOSS = V1LayerParameter_LayerType_INFOGAIN_LOSS; - static const LayerType INNER_PRODUCT = V1LayerParameter_LayerType_INNER_PRODUCT; - static const LayerType LRN = V1LayerParameter_LayerType_LRN; - static const LayerType MEMORY_DATA = V1LayerParameter_LayerType_MEMORY_DATA; - static const LayerType MULTINOMIAL_LOGISTIC_LOSS = V1LayerParameter_LayerType_MULTINOMIAL_LOGISTIC_LOSS; - static const LayerType MVN = V1LayerParameter_LayerType_MVN; - static const LayerType POOLING = V1LayerParameter_LayerType_POOLING; - static const LayerType POWER = V1LayerParameter_LayerType_POWER; - static const LayerType RELU = V1LayerParameter_LayerType_RELU; - static const LayerType SIGMOID = V1LayerParameter_LayerType_SIGMOID; - static const LayerType SIGMOID_CROSS_ENTROPY_LOSS = V1LayerParameter_LayerType_SIGMOID_CROSS_ENTROPY_LOSS; - static const LayerType SILENCE = V1LayerParameter_LayerType_SILENCE; - static const LayerType SOFTMAX = V1LayerParameter_LayerType_SOFTMAX; - static const LayerType SOFTMAX_LOSS = V1LayerParameter_LayerType_SOFTMAX_LOSS; - static const LayerType SPLIT = V1LayerParameter_LayerType_SPLIT; - static const LayerType SLICE = V1LayerParameter_LayerType_SLICE; - static const LayerType TANH = V1LayerParameter_LayerType_TANH; - static const LayerType WINDOW_DATA = V1LayerParameter_LayerType_WINDOW_DATA; - static const LayerType THRESHOLD = V1LayerParameter_LayerType_THRESHOLD; - static inline bool LayerType_IsValid(int value) { - return V1LayerParameter_LayerType_IsValid(value); - } - static const LayerType LayerType_MIN = - V1LayerParameter_LayerType_LayerType_MIN; - static const LayerType LayerType_MAX = - V1LayerParameter_LayerType_LayerType_MAX; - static const int LayerType_ARRAYSIZE = - V1LayerParameter_LayerType_LayerType_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - LayerType_descriptor() { - return V1LayerParameter_LayerType_descriptor(); - } - static inline const ::std::string& LayerType_Name(LayerType value) { - return V1LayerParameter_LayerType_Name(value); - } - static inline bool LayerType_Parse(const ::std::string& name, - LayerType* value) { - return V1LayerParameter_LayerType_Parse(name, value); - } - - typedef V1LayerParameter_DimCheckMode DimCheckMode; - static const DimCheckMode STRICT = V1LayerParameter_DimCheckMode_STRICT; - static const DimCheckMode PERMISSIVE = V1LayerParameter_DimCheckMode_PERMISSIVE; - static inline bool DimCheckMode_IsValid(int value) { - return V1LayerParameter_DimCheckMode_IsValid(value); - } - static const DimCheckMode DimCheckMode_MIN = - V1LayerParameter_DimCheckMode_DimCheckMode_MIN; - static const DimCheckMode DimCheckMode_MAX = - V1LayerParameter_DimCheckMode_DimCheckMode_MAX; - static const int DimCheckMode_ARRAYSIZE = - V1LayerParameter_DimCheckMode_DimCheckMode_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - DimCheckMode_descriptor() { - return V1LayerParameter_DimCheckMode_descriptor(); - } - static inline const ::std::string& DimCheckMode_Name(DimCheckMode value) { - return V1LayerParameter_DimCheckMode_Name(value); - } - static inline bool DimCheckMode_Parse(const ::std::string& name, - DimCheckMode* value) { - return V1LayerParameter_DimCheckMode_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // repeated string bottom = 2; - inline int bottom_size() const; - inline void clear_bottom(); - static const int kBottomFieldNumber = 2; - inline const ::std::string& bottom(int index) const; - inline ::std::string* mutable_bottom(int index); - inline void set_bottom(int index, const ::std::string& value); - inline void set_bottom(int index, const char* value); - inline void set_bottom(int index, const char* value, size_t size); - inline ::std::string* add_bottom(); - inline void add_bottom(const ::std::string& value); - inline void add_bottom(const char* value); - inline void add_bottom(const char* value, size_t size); - inline const ::google::protobuf::RepeatedPtrField< ::std::string>& bottom() const; - inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_bottom(); - - // repeated string top = 3; - inline int top_size() const; - inline void clear_top(); - static const int kTopFieldNumber = 3; - inline const ::std::string& top(int index) const; - inline ::std::string* mutable_top(int index); - inline void set_top(int index, const ::std::string& value); - inline void set_top(int index, const char* value); - inline void set_top(int index, const char* value, size_t size); - inline ::std::string* add_top(); - inline void add_top(const ::std::string& value); - inline void add_top(const char* value); - inline void add_top(const char* value, size_t size); - inline const ::google::protobuf::RepeatedPtrField< ::std::string>& top() const; - inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_top(); - - // optional string name = 4; - inline bool has_name() const; - inline void clear_name(); - static const int kNameFieldNumber = 4; - inline const ::std::string& name() const; - inline void set_name(const ::std::string& value); - inline void set_name(const char* value); - inline void set_name(const char* value, size_t size); - inline ::std::string* mutable_name(); - inline ::std::string* release_name(); - inline void set_allocated_name(::std::string* name); - - // repeated .caffe.NetStateRule include = 32; - inline int include_size() const; - inline void clear_include(); - static const int kIncludeFieldNumber = 32; - inline const ::caffe::NetStateRule& include(int index) const; - inline ::caffe::NetStateRule* mutable_include(int index); - inline ::caffe::NetStateRule* add_include(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >& - include() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >* - mutable_include(); - - // repeated .caffe.NetStateRule exclude = 33; - inline int exclude_size() const; - inline void clear_exclude(); - static const int kExcludeFieldNumber = 33; - inline const ::caffe::NetStateRule& exclude(int index) const; - inline ::caffe::NetStateRule* mutable_exclude(int index); - inline ::caffe::NetStateRule* add_exclude(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >& - exclude() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >* - mutable_exclude(); - - // optional .caffe.V1LayerParameter.LayerType type = 5; - inline bool has_type() const; - inline void clear_type(); - static const int kTypeFieldNumber = 5; - inline ::caffe::V1LayerParameter_LayerType type() const; - inline void set_type(::caffe::V1LayerParameter_LayerType value); - - // repeated .caffe.BlobProto blobs = 6; - inline int blobs_size() const; - inline void clear_blobs(); - static const int kBlobsFieldNumber = 6; - inline const ::caffe::BlobProto& blobs(int index) const; - inline ::caffe::BlobProto* mutable_blobs(int index); - inline ::caffe::BlobProto* add_blobs(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >& - blobs() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >* - mutable_blobs(); - - // repeated string param = 1001; - inline int param_size() const; - inline void clear_param(); - static const int kParamFieldNumber = 1001; - inline const ::std::string& param(int index) const; - inline ::std::string* mutable_param(int index); - inline void set_param(int index, const ::std::string& value); - inline void set_param(int index, const char* value); - inline void set_param(int index, const char* value, size_t size); - inline ::std::string* add_param(); - inline void add_param(const ::std::string& value); - inline void add_param(const char* value); - inline void add_param(const char* value, size_t size); - inline const ::google::protobuf::RepeatedPtrField< ::std::string>& param() const; - inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_param(); - - // repeated .caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002; - inline int blob_share_mode_size() const; - inline void clear_blob_share_mode(); - static const int kBlobShareModeFieldNumber = 1002; - inline ::caffe::V1LayerParameter_DimCheckMode blob_share_mode(int index) const; - inline void set_blob_share_mode(int index, ::caffe::V1LayerParameter_DimCheckMode value); - inline void add_blob_share_mode(::caffe::V1LayerParameter_DimCheckMode value); - inline const ::google::protobuf::RepeatedField& blob_share_mode() const; - inline ::google::protobuf::RepeatedField* mutable_blob_share_mode(); - - // repeated float blobs_lr = 7; - inline int blobs_lr_size() const; - inline void clear_blobs_lr(); - static const int kBlobsLrFieldNumber = 7; - inline float blobs_lr(int index) const; - inline void set_blobs_lr(int index, float value); - inline void add_blobs_lr(float value); - inline const ::google::protobuf::RepeatedField< float >& - blobs_lr() const; - inline ::google::protobuf::RepeatedField< float >* - mutable_blobs_lr(); - - // repeated float weight_decay = 8; - inline int weight_decay_size() const; - inline void clear_weight_decay(); - static const int kWeightDecayFieldNumber = 8; - inline float weight_decay(int index) const; - inline void set_weight_decay(int index, float value); - inline void add_weight_decay(float value); - inline const ::google::protobuf::RepeatedField< float >& - weight_decay() const; - inline ::google::protobuf::RepeatedField< float >* - mutable_weight_decay(); - - // repeated float loss_weight = 35; - inline int loss_weight_size() const; - inline void clear_loss_weight(); - static const int kLossWeightFieldNumber = 35; - inline float loss_weight(int index) const; - inline void set_loss_weight(int index, float value); - inline void add_loss_weight(float value); - inline const ::google::protobuf::RepeatedField< float >& - loss_weight() const; - inline ::google::protobuf::RepeatedField< float >* - mutable_loss_weight(); - - // optional .caffe.AccuracyParameter accuracy_param = 27; - inline bool has_accuracy_param() const; - inline void clear_accuracy_param(); - static const int kAccuracyParamFieldNumber = 27; - inline const ::caffe::AccuracyParameter& accuracy_param() const; - inline ::caffe::AccuracyParameter* mutable_accuracy_param(); - inline ::caffe::AccuracyParameter* release_accuracy_param(); - inline void set_allocated_accuracy_param(::caffe::AccuracyParameter* accuracy_param); - - // optional .caffe.ArgMaxParameter argmax_param = 23; - inline bool has_argmax_param() const; - inline void clear_argmax_param(); - static const int kArgmaxParamFieldNumber = 23; - inline const ::caffe::ArgMaxParameter& argmax_param() const; - inline ::caffe::ArgMaxParameter* mutable_argmax_param(); - inline ::caffe::ArgMaxParameter* release_argmax_param(); - inline void set_allocated_argmax_param(::caffe::ArgMaxParameter* argmax_param); - - // optional .caffe.ConcatParameter concat_param = 9; - inline bool has_concat_param() const; - inline void clear_concat_param(); - static const int kConcatParamFieldNumber = 9; - inline const ::caffe::ConcatParameter& concat_param() const; - inline ::caffe::ConcatParameter* mutable_concat_param(); - inline ::caffe::ConcatParameter* release_concat_param(); - inline void set_allocated_concat_param(::caffe::ConcatParameter* concat_param); - - // optional .caffe.ContrastiveLossParameter contrastive_loss_param = 40; - inline bool has_contrastive_loss_param() const; - inline void clear_contrastive_loss_param(); - static const int kContrastiveLossParamFieldNumber = 40; - inline const ::caffe::ContrastiveLossParameter& contrastive_loss_param() const; - inline ::caffe::ContrastiveLossParameter* mutable_contrastive_loss_param(); - inline ::caffe::ContrastiveLossParameter* release_contrastive_loss_param(); - inline void set_allocated_contrastive_loss_param(::caffe::ContrastiveLossParameter* contrastive_loss_param); - - // optional .caffe.ConvolutionParameter convolution_param = 10; - inline bool has_convolution_param() const; - inline void clear_convolution_param(); - static const int kConvolutionParamFieldNumber = 10; - inline const ::caffe::ConvolutionParameter& convolution_param() const; - inline ::caffe::ConvolutionParameter* mutable_convolution_param(); - inline ::caffe::ConvolutionParameter* release_convolution_param(); - inline void set_allocated_convolution_param(::caffe::ConvolutionParameter* convolution_param); - - // optional .caffe.DataParameter data_param = 11; - inline bool has_data_param() const; - inline void clear_data_param(); - static const int kDataParamFieldNumber = 11; - inline const ::caffe::DataParameter& data_param() const; - inline ::caffe::DataParameter* mutable_data_param(); - inline ::caffe::DataParameter* release_data_param(); - inline void set_allocated_data_param(::caffe::DataParameter* data_param); - - // optional .caffe.DropoutParameter dropout_param = 12; - inline bool has_dropout_param() const; - inline void clear_dropout_param(); - static const int kDropoutParamFieldNumber = 12; - inline const ::caffe::DropoutParameter& dropout_param() const; - inline ::caffe::DropoutParameter* mutable_dropout_param(); - inline ::caffe::DropoutParameter* release_dropout_param(); - inline void set_allocated_dropout_param(::caffe::DropoutParameter* dropout_param); - - // optional .caffe.DummyDataParameter dummy_data_param = 26; - inline bool has_dummy_data_param() const; - inline void clear_dummy_data_param(); - static const int kDummyDataParamFieldNumber = 26; - inline const ::caffe::DummyDataParameter& dummy_data_param() const; - inline ::caffe::DummyDataParameter* mutable_dummy_data_param(); - inline ::caffe::DummyDataParameter* release_dummy_data_param(); - inline void set_allocated_dummy_data_param(::caffe::DummyDataParameter* dummy_data_param); - - // optional .caffe.EltwiseParameter eltwise_param = 24; - inline bool has_eltwise_param() const; - inline void clear_eltwise_param(); - static const int kEltwiseParamFieldNumber = 24; - inline const ::caffe::EltwiseParameter& eltwise_param() const; - inline ::caffe::EltwiseParameter* mutable_eltwise_param(); - inline ::caffe::EltwiseParameter* release_eltwise_param(); - inline void set_allocated_eltwise_param(::caffe::EltwiseParameter* eltwise_param); - - // optional .caffe.ExpParameter exp_param = 41; - inline bool has_exp_param() const; - inline void clear_exp_param(); - static const int kExpParamFieldNumber = 41; - inline const ::caffe::ExpParameter& exp_param() const; - inline ::caffe::ExpParameter* mutable_exp_param(); - inline ::caffe::ExpParameter* release_exp_param(); - inline void set_allocated_exp_param(::caffe::ExpParameter* exp_param); - - // optional .caffe.HDF5DataParameter hdf5_data_param = 13; - inline bool has_hdf5_data_param() const; - inline void clear_hdf5_data_param(); - static const int kHdf5DataParamFieldNumber = 13; - inline const ::caffe::HDF5DataParameter& hdf5_data_param() const; - inline ::caffe::HDF5DataParameter* mutable_hdf5_data_param(); - inline ::caffe::HDF5DataParameter* release_hdf5_data_param(); - inline void set_allocated_hdf5_data_param(::caffe::HDF5DataParameter* hdf5_data_param); - - // optional .caffe.HDF5OutputParameter hdf5_output_param = 14; - inline bool has_hdf5_output_param() const; - inline void clear_hdf5_output_param(); - static const int kHdf5OutputParamFieldNumber = 14; - inline const ::caffe::HDF5OutputParameter& hdf5_output_param() const; - inline ::caffe::HDF5OutputParameter* mutable_hdf5_output_param(); - inline ::caffe::HDF5OutputParameter* release_hdf5_output_param(); - inline void set_allocated_hdf5_output_param(::caffe::HDF5OutputParameter* hdf5_output_param); - - // optional .caffe.HingeLossParameter hinge_loss_param = 29; - inline bool has_hinge_loss_param() const; - inline void clear_hinge_loss_param(); - static const int kHingeLossParamFieldNumber = 29; - inline const ::caffe::HingeLossParameter& hinge_loss_param() const; - inline ::caffe::HingeLossParameter* mutable_hinge_loss_param(); - inline ::caffe::HingeLossParameter* release_hinge_loss_param(); - inline void set_allocated_hinge_loss_param(::caffe::HingeLossParameter* hinge_loss_param); - - // optional .caffe.ImageDataParameter image_data_param = 15; - inline bool has_image_data_param() const; - inline void clear_image_data_param(); - static const int kImageDataParamFieldNumber = 15; - inline const ::caffe::ImageDataParameter& image_data_param() const; - inline ::caffe::ImageDataParameter* mutable_image_data_param(); - inline ::caffe::ImageDataParameter* release_image_data_param(); - inline void set_allocated_image_data_param(::caffe::ImageDataParameter* image_data_param); - - // optional .caffe.InfogainLossParameter infogain_loss_param = 16; - inline bool has_infogain_loss_param() const; - inline void clear_infogain_loss_param(); - static const int kInfogainLossParamFieldNumber = 16; - inline const ::caffe::InfogainLossParameter& infogain_loss_param() const; - inline ::caffe::InfogainLossParameter* mutable_infogain_loss_param(); - inline ::caffe::InfogainLossParameter* release_infogain_loss_param(); - inline void set_allocated_infogain_loss_param(::caffe::InfogainLossParameter* infogain_loss_param); - - // optional .caffe.InnerProductParameter inner_product_param = 17; - inline bool has_inner_product_param() const; - inline void clear_inner_product_param(); - static const int kInnerProductParamFieldNumber = 17; - inline const ::caffe::InnerProductParameter& inner_product_param() const; - inline ::caffe::InnerProductParameter* mutable_inner_product_param(); - inline ::caffe::InnerProductParameter* release_inner_product_param(); - inline void set_allocated_inner_product_param(::caffe::InnerProductParameter* inner_product_param); - - // optional .caffe.LRNParameter lrn_param = 18; - inline bool has_lrn_param() const; - inline void clear_lrn_param(); - static const int kLrnParamFieldNumber = 18; - inline const ::caffe::LRNParameter& lrn_param() const; - inline ::caffe::LRNParameter* mutable_lrn_param(); - inline ::caffe::LRNParameter* release_lrn_param(); - inline void set_allocated_lrn_param(::caffe::LRNParameter* lrn_param); - - // optional .caffe.MemoryDataParameter memory_data_param = 22; - inline bool has_memory_data_param() const; - inline void clear_memory_data_param(); - static const int kMemoryDataParamFieldNumber = 22; - inline const ::caffe::MemoryDataParameter& memory_data_param() const; - inline ::caffe::MemoryDataParameter* mutable_memory_data_param(); - inline ::caffe::MemoryDataParameter* release_memory_data_param(); - inline void set_allocated_memory_data_param(::caffe::MemoryDataParameter* memory_data_param); - - // optional .caffe.MVNParameter mvn_param = 34; - inline bool has_mvn_param() const; - inline void clear_mvn_param(); - static const int kMvnParamFieldNumber = 34; - inline const ::caffe::MVNParameter& mvn_param() const; - inline ::caffe::MVNParameter* mutable_mvn_param(); - inline ::caffe::MVNParameter* release_mvn_param(); - inline void set_allocated_mvn_param(::caffe::MVNParameter* mvn_param); - - // optional .caffe.PoolingParameter pooling_param = 19; - inline bool has_pooling_param() const; - inline void clear_pooling_param(); - static const int kPoolingParamFieldNumber = 19; - inline const ::caffe::PoolingParameter& pooling_param() const; - inline ::caffe::PoolingParameter* mutable_pooling_param(); - inline ::caffe::PoolingParameter* release_pooling_param(); - inline void set_allocated_pooling_param(::caffe::PoolingParameter* pooling_param); - - // optional .caffe.PowerParameter power_param = 21; - inline bool has_power_param() const; - inline void clear_power_param(); - static const int kPowerParamFieldNumber = 21; - inline const ::caffe::PowerParameter& power_param() const; - inline ::caffe::PowerParameter* mutable_power_param(); - inline ::caffe::PowerParameter* release_power_param(); - inline void set_allocated_power_param(::caffe::PowerParameter* power_param); - - // optional .caffe.ReLUParameter relu_param = 30; - inline bool has_relu_param() const; - inline void clear_relu_param(); - static const int kReluParamFieldNumber = 30; - inline const ::caffe::ReLUParameter& relu_param() const; - inline ::caffe::ReLUParameter* mutable_relu_param(); - inline ::caffe::ReLUParameter* release_relu_param(); - inline void set_allocated_relu_param(::caffe::ReLUParameter* relu_param); - - // optional .caffe.SigmoidParameter sigmoid_param = 38; - inline bool has_sigmoid_param() const; - inline void clear_sigmoid_param(); - static const int kSigmoidParamFieldNumber = 38; - inline const ::caffe::SigmoidParameter& sigmoid_param() const; - inline ::caffe::SigmoidParameter* mutable_sigmoid_param(); - inline ::caffe::SigmoidParameter* release_sigmoid_param(); - inline void set_allocated_sigmoid_param(::caffe::SigmoidParameter* sigmoid_param); - - // optional .caffe.SoftmaxParameter softmax_param = 39; - inline bool has_softmax_param() const; - inline void clear_softmax_param(); - static const int kSoftmaxParamFieldNumber = 39; - inline const ::caffe::SoftmaxParameter& softmax_param() const; - inline ::caffe::SoftmaxParameter* mutable_softmax_param(); - inline ::caffe::SoftmaxParameter* release_softmax_param(); - inline void set_allocated_softmax_param(::caffe::SoftmaxParameter* softmax_param); - - // optional .caffe.SliceParameter slice_param = 31; - inline bool has_slice_param() const; - inline void clear_slice_param(); - static const int kSliceParamFieldNumber = 31; - inline const ::caffe::SliceParameter& slice_param() const; - inline ::caffe::SliceParameter* mutable_slice_param(); - inline ::caffe::SliceParameter* release_slice_param(); - inline void set_allocated_slice_param(::caffe::SliceParameter* slice_param); - - // optional .caffe.TanHParameter tanh_param = 37; - inline bool has_tanh_param() const; - inline void clear_tanh_param(); - static const int kTanhParamFieldNumber = 37; - inline const ::caffe::TanHParameter& tanh_param() const; - inline ::caffe::TanHParameter* mutable_tanh_param(); - inline ::caffe::TanHParameter* release_tanh_param(); - inline void set_allocated_tanh_param(::caffe::TanHParameter* tanh_param); - - // optional .caffe.ThresholdParameter threshold_param = 25; - inline bool has_threshold_param() const; - inline void clear_threshold_param(); - static const int kThresholdParamFieldNumber = 25; - inline const ::caffe::ThresholdParameter& threshold_param() const; - inline ::caffe::ThresholdParameter* mutable_threshold_param(); - inline ::caffe::ThresholdParameter* release_threshold_param(); - inline void set_allocated_threshold_param(::caffe::ThresholdParameter* threshold_param); - - // optional .caffe.WindowDataParameter window_data_param = 20; - inline bool has_window_data_param() const; - inline void clear_window_data_param(); - static const int kWindowDataParamFieldNumber = 20; - inline const ::caffe::WindowDataParameter& window_data_param() const; - inline ::caffe::WindowDataParameter* mutable_window_data_param(); - inline ::caffe::WindowDataParameter* release_window_data_param(); - inline void set_allocated_window_data_param(::caffe::WindowDataParameter* window_data_param); - - // optional .caffe.TransformationParameter transform_param = 36; - inline bool has_transform_param() const; - inline void clear_transform_param(); - static const int kTransformParamFieldNumber = 36; - inline const ::caffe::TransformationParameter& transform_param() const; - inline ::caffe::TransformationParameter* mutable_transform_param(); - inline ::caffe::TransformationParameter* release_transform_param(); - inline void set_allocated_transform_param(::caffe::TransformationParameter* transform_param); - - // optional .caffe.LossParameter loss_param = 42; - inline bool has_loss_param() const; - inline void clear_loss_param(); - static const int kLossParamFieldNumber = 42; - inline const ::caffe::LossParameter& loss_param() const; - inline ::caffe::LossParameter* mutable_loss_param(); - inline ::caffe::LossParameter* release_loss_param(); - inline void set_allocated_loss_param(::caffe::LossParameter* loss_param); - - // optional .caffe.V0LayerParameter layer = 1; - inline bool has_layer() const; - inline void clear_layer(); - static const int kLayerFieldNumber = 1; - inline const ::caffe::V0LayerParameter& layer() const; - inline ::caffe::V0LayerParameter* mutable_layer(); - inline ::caffe::V0LayerParameter* release_layer(); - inline void set_allocated_layer(::caffe::V0LayerParameter* layer); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::RepeatedPtrField< ::std::string> bottom_; - ::google::protobuf::RepeatedPtrField< ::std::string> top_; - ::std::string* name_; - ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule > include_; - ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule > exclude_; - ::google::protobuf::RepeatedPtrField< ::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::RepeatedField< float > loss_weight_; - ::caffe::AccuracyParameter* accuracy_param_; - ::caffe::ArgMaxParameter* argmax_param_; - ::caffe::ConcatParameter* concat_param_; - ::caffe::ContrastiveLossParameter* contrastive_loss_param_; - ::caffe::ConvolutionParameter* convolution_param_; - ::caffe::DataParameter* data_param_; - ::caffe::DropoutParameter* dropout_param_; - ::caffe::DummyDataParameter* dummy_data_param_; - ::caffe::EltwiseParameter* eltwise_param_; - ::caffe::ExpParameter* exp_param_; - ::caffe::HDF5DataParameter* hdf5_data_param_; - ::caffe::HDF5OutputParameter* hdf5_output_param_; - ::caffe::HingeLossParameter* hinge_loss_param_; - ::caffe::ImageDataParameter* image_data_param_; - ::caffe::InfogainLossParameter* infogain_loss_param_; - ::caffe::InnerProductParameter* inner_product_param_; - ::caffe::LRNParameter* lrn_param_; - ::caffe::MemoryDataParameter* memory_data_param_; - ::caffe::MVNParameter* mvn_param_; - ::caffe::PoolingParameter* pooling_param_; - ::caffe::PowerParameter* power_param_; - ::caffe::ReLUParameter* relu_param_; - ::caffe::SigmoidParameter* sigmoid_param_; - ::caffe::SoftmaxParameter* softmax_param_; - ::caffe::SliceParameter* slice_param_; - ::caffe::TanHParameter* tanh_param_; - ::caffe::ThresholdParameter* threshold_param_; - ::caffe::WindowDataParameter* window_data_param_; - ::caffe::TransformationParameter* transform_param_; - ::caffe::LossParameter* loss_param_; - ::caffe::V0LayerParameter* layer_; - int type_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(43 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static V1LayerParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class V0LayerParameter : public ::google::protobuf::Message { - public: - V0LayerParameter(); - virtual ~V0LayerParameter(); - - V0LayerParameter(const V0LayerParameter& from); - - inline V0LayerParameter& operator=(const V0LayerParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const V0LayerParameter& default_instance(); - - void Swap(V0LayerParameter* other); - - // implements Message ---------------------------------------------- - - V0LayerParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const V0LayerParameter& from); - void MergeFrom(const V0LayerParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef V0LayerParameter_PoolMethod PoolMethod; - static const PoolMethod MAX = V0LayerParameter_PoolMethod_MAX; - static const PoolMethod AVE = V0LayerParameter_PoolMethod_AVE; - static const PoolMethod STOCHASTIC = V0LayerParameter_PoolMethod_STOCHASTIC; - static inline bool PoolMethod_IsValid(int value) { - return V0LayerParameter_PoolMethod_IsValid(value); - } - static const PoolMethod PoolMethod_MIN = - V0LayerParameter_PoolMethod_PoolMethod_MIN; - static const PoolMethod PoolMethod_MAX = - V0LayerParameter_PoolMethod_PoolMethod_MAX; - static const int PoolMethod_ARRAYSIZE = - V0LayerParameter_PoolMethod_PoolMethod_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - PoolMethod_descriptor() { - return V0LayerParameter_PoolMethod_descriptor(); - } - static inline const ::std::string& PoolMethod_Name(PoolMethod value) { - return V0LayerParameter_PoolMethod_Name(value); - } - static inline bool PoolMethod_Parse(const ::std::string& name, - PoolMethod* value) { - return V0LayerParameter_PoolMethod_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // optional string name = 1; - inline bool has_name() const; - inline void clear_name(); - static const int kNameFieldNumber = 1; - inline const ::std::string& name() const; - inline void set_name(const ::std::string& value); - inline void set_name(const char* value); - inline void set_name(const char* value, size_t size); - inline ::std::string* mutable_name(); - inline ::std::string* release_name(); - inline void set_allocated_name(::std::string* name); - - // optional string type = 2; - inline bool has_type() const; - inline void clear_type(); - static const int kTypeFieldNumber = 2; - inline const ::std::string& type() const; - inline void set_type(const ::std::string& value); - inline void set_type(const char* value); - inline void set_type(const char* value, size_t size); - inline ::std::string* mutable_type(); - inline ::std::string* release_type(); - inline void set_allocated_type(::std::string* type); - - // optional uint32 num_output = 3; - inline bool has_num_output() const; - inline void clear_num_output(); - static const int kNumOutputFieldNumber = 3; - inline ::google::protobuf::uint32 num_output() const; - inline void set_num_output(::google::protobuf::uint32 value); - - // optional bool biasterm = 4 [default = true]; - inline bool has_biasterm() const; - inline void clear_biasterm(); - static const int kBiastermFieldNumber = 4; - inline bool biasterm() const; - inline void set_biasterm(bool value); - - // optional .caffe.FillerParameter weight_filler = 5; - inline bool has_weight_filler() const; - inline void clear_weight_filler(); - static const int kWeightFillerFieldNumber = 5; - inline const ::caffe::FillerParameter& weight_filler() const; - inline ::caffe::FillerParameter* mutable_weight_filler(); - inline ::caffe::FillerParameter* release_weight_filler(); - inline void set_allocated_weight_filler(::caffe::FillerParameter* weight_filler); - - // optional .caffe.FillerParameter bias_filler = 6; - inline bool has_bias_filler() const; - inline void clear_bias_filler(); - static const int kBiasFillerFieldNumber = 6; - inline const ::caffe::FillerParameter& bias_filler() const; - inline ::caffe::FillerParameter* mutable_bias_filler(); - inline ::caffe::FillerParameter* release_bias_filler(); - inline void set_allocated_bias_filler(::caffe::FillerParameter* bias_filler); - - // optional uint32 pad = 7 [default = 0]; - inline bool has_pad() const; - inline void clear_pad(); - static const int kPadFieldNumber = 7; - inline ::google::protobuf::uint32 pad() const; - inline void set_pad(::google::protobuf::uint32 value); - - // optional uint32 kernelsize = 8; - inline bool has_kernelsize() const; - inline void clear_kernelsize(); - static const int kKernelsizeFieldNumber = 8; - inline ::google::protobuf::uint32 kernelsize() const; - inline void set_kernelsize(::google::protobuf::uint32 value); - - // optional uint32 group = 9 [default = 1]; - inline bool has_group() const; - inline void clear_group(); - static const int kGroupFieldNumber = 9; - inline ::google::protobuf::uint32 group() const; - inline void set_group(::google::protobuf::uint32 value); - - // optional uint32 stride = 10 [default = 1]; - inline bool has_stride() const; - inline void clear_stride(); - static const int kStrideFieldNumber = 10; - inline ::google::protobuf::uint32 stride() const; - inline void set_stride(::google::protobuf::uint32 value); - - // optional .caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX]; - inline bool has_pool() const; - inline void clear_pool(); - static const int kPoolFieldNumber = 11; - inline ::caffe::V0LayerParameter_PoolMethod pool() const; - inline void set_pool(::caffe::V0LayerParameter_PoolMethod value); - - // optional float dropout_ratio = 12 [default = 0.5]; - inline bool has_dropout_ratio() const; - inline void clear_dropout_ratio(); - static const int kDropoutRatioFieldNumber = 12; - inline float dropout_ratio() const; - inline void set_dropout_ratio(float value); - - // optional uint32 local_size = 13 [default = 5]; - inline bool has_local_size() const; - inline void clear_local_size(); - static const int kLocalSizeFieldNumber = 13; - inline ::google::protobuf::uint32 local_size() const; - inline void set_local_size(::google::protobuf::uint32 value); - - // optional float alpha = 14 [default = 1]; - inline bool has_alpha() const; - inline void clear_alpha(); - static const int kAlphaFieldNumber = 14; - inline float alpha() const; - inline void set_alpha(float value); - - // optional float beta = 15 [default = 0.75]; - inline bool has_beta() const; - inline void clear_beta(); - static const int kBetaFieldNumber = 15; - inline float beta() const; - inline void set_beta(float value); - - // optional float k = 22 [default = 1]; - inline bool has_k() const; - inline void clear_k(); - static const int kKFieldNumber = 22; - inline float k() const; - inline void set_k(float value); - - // optional string source = 16; - inline bool has_source() const; - inline void clear_source(); - static const int kSourceFieldNumber = 16; - inline const ::std::string& source() const; - inline void set_source(const ::std::string& value); - inline void set_source(const char* value); - inline void set_source(const char* value, size_t size); - inline ::std::string* mutable_source(); - inline ::std::string* release_source(); - inline void set_allocated_source(::std::string* source); - - // optional float scale = 17 [default = 1]; - inline bool has_scale() const; - inline void clear_scale(); - static const int kScaleFieldNumber = 17; - inline float scale() const; - inline void set_scale(float value); - - // optional string meanfile = 18; - inline bool has_meanfile() const; - inline void clear_meanfile(); - static const int kMeanfileFieldNumber = 18; - inline const ::std::string& meanfile() const; - inline void set_meanfile(const ::std::string& value); - inline void set_meanfile(const char* value); - inline void set_meanfile(const char* value, size_t size); - inline ::std::string* mutable_meanfile(); - inline ::std::string* release_meanfile(); - inline void set_allocated_meanfile(::std::string* meanfile); - - // optional uint32 batchsize = 19; - inline bool has_batchsize() const; - inline void clear_batchsize(); - static const int kBatchsizeFieldNumber = 19; - inline ::google::protobuf::uint32 batchsize() const; - inline void set_batchsize(::google::protobuf::uint32 value); - - // optional uint32 cropsize = 20 [default = 0]; - inline bool has_cropsize() const; - inline void clear_cropsize(); - static const int kCropsizeFieldNumber = 20; - inline ::google::protobuf::uint32 cropsize() const; - inline void set_cropsize(::google::protobuf::uint32 value); - - // optional bool mirror = 21 [default = false]; - inline bool has_mirror() const; - inline void clear_mirror(); - static const int kMirrorFieldNumber = 21; - inline bool mirror() const; - inline void set_mirror(bool value); - - // repeated .caffe.BlobProto blobs = 50; - inline int blobs_size() const; - inline void clear_blobs(); - static const int kBlobsFieldNumber = 50; - inline const ::caffe::BlobProto& blobs(int index) const; - inline ::caffe::BlobProto* mutable_blobs(int index); - inline ::caffe::BlobProto* add_blobs(); - inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >& - blobs() const; - inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >* - mutable_blobs(); - - // repeated float blobs_lr = 51; - inline int blobs_lr_size() const; - inline void clear_blobs_lr(); - static const int kBlobsLrFieldNumber = 51; - inline float blobs_lr(int index) const; - inline void set_blobs_lr(int index, float value); - inline void add_blobs_lr(float value); - inline const ::google::protobuf::RepeatedField< float >& - blobs_lr() const; - inline ::google::protobuf::RepeatedField< float >* - mutable_blobs_lr(); - - // repeated float weight_decay = 52; - inline int weight_decay_size() const; - inline void clear_weight_decay(); - static const int kWeightDecayFieldNumber = 52; - inline float weight_decay(int index) const; - inline void set_weight_decay(int index, float value); - inline void add_weight_decay(float value); - inline const ::google::protobuf::RepeatedField< float >& - weight_decay() const; - inline ::google::protobuf::RepeatedField< float >* - mutable_weight_decay(); - - // optional uint32 rand_skip = 53 [default = 0]; - inline bool has_rand_skip() const; - inline void clear_rand_skip(); - static const int kRandSkipFieldNumber = 53; - inline ::google::protobuf::uint32 rand_skip() const; - inline void set_rand_skip(::google::protobuf::uint32 value); - - // optional float det_fg_threshold = 54 [default = 0.5]; - inline bool has_det_fg_threshold() const; - inline void clear_det_fg_threshold(); - static const int kDetFgThresholdFieldNumber = 54; - inline float det_fg_threshold() const; - inline void set_det_fg_threshold(float value); - - // optional float det_bg_threshold = 55 [default = 0.5]; - inline bool has_det_bg_threshold() const; - inline void clear_det_bg_threshold(); - static const int kDetBgThresholdFieldNumber = 55; - inline float det_bg_threshold() const; - inline void set_det_bg_threshold(float value); - - // optional float det_fg_fraction = 56 [default = 0.25]; - inline bool has_det_fg_fraction() const; - inline void clear_det_fg_fraction(); - static const int kDetFgFractionFieldNumber = 56; - inline float det_fg_fraction() const; - inline void set_det_fg_fraction(float value); - - // optional uint32 det_context_pad = 58 [default = 0]; - inline bool has_det_context_pad() const; - inline void clear_det_context_pad(); - static const int kDetContextPadFieldNumber = 58; - inline ::google::protobuf::uint32 det_context_pad() const; - inline void set_det_context_pad(::google::protobuf::uint32 value); - - // optional string det_crop_mode = 59 [default = "warp"]; - inline bool has_det_crop_mode() const; - inline void clear_det_crop_mode(); - static const int kDetCropModeFieldNumber = 59; - inline const ::std::string& det_crop_mode() const; - inline void set_det_crop_mode(const ::std::string& value); - inline void set_det_crop_mode(const char* value); - inline void set_det_crop_mode(const char* value, size_t size); - inline ::std::string* mutable_det_crop_mode(); - inline ::std::string* release_det_crop_mode(); - inline void set_allocated_det_crop_mode(::std::string* det_crop_mode); - - // optional int32 new_num = 60 [default = 0]; - inline bool has_new_num() const; - inline void clear_new_num(); - static const int kNewNumFieldNumber = 60; - inline ::google::protobuf::int32 new_num() const; - inline void set_new_num(::google::protobuf::int32 value); - - // optional int32 new_channels = 61 [default = 0]; - inline bool has_new_channels() const; - inline void clear_new_channels(); - static const int kNewChannelsFieldNumber = 61; - inline ::google::protobuf::int32 new_channels() const; - inline void set_new_channels(::google::protobuf::int32 value); - - // optional int32 new_height = 62 [default = 0]; - inline bool has_new_height() const; - inline void clear_new_height(); - static const int kNewHeightFieldNumber = 62; - inline ::google::protobuf::int32 new_height() const; - inline void set_new_height(::google::protobuf::int32 value); - - // optional int32 new_width = 63 [default = 0]; - inline bool has_new_width() const; - inline void clear_new_width(); - static const int kNewWidthFieldNumber = 63; - inline ::google::protobuf::int32 new_width() const; - inline void set_new_width(::google::protobuf::int32 value); - - // optional bool shuffle_images = 64 [default = false]; - inline bool has_shuffle_images() const; - inline void clear_shuffle_images(); - static const int kShuffleImagesFieldNumber = 64; - inline bool shuffle_images() const; - inline void set_shuffle_images(bool value); - - // optional uint32 concat_dim = 65 [default = 1]; - inline bool has_concat_dim() const; - inline void clear_concat_dim(); - static const int kConcatDimFieldNumber = 65; - inline ::google::protobuf::uint32 concat_dim() const; - inline void set_concat_dim(::google::protobuf::uint32 value); - - // optional .caffe.HDF5OutputParameter hdf5_output_param = 1001; - inline bool has_hdf5_output_param() const; - inline void clear_hdf5_output_param(); - static const int kHdf5OutputParamFieldNumber = 1001; - inline const ::caffe::HDF5OutputParameter& hdf5_output_param() const; - inline ::caffe::HDF5OutputParameter* mutable_hdf5_output_param(); - inline ::caffe::HDF5OutputParameter* release_hdf5_output_param(); - inline void set_allocated_hdf5_output_param(::caffe::HDF5OutputParameter* hdf5_output_param); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* name_; - ::std::string* type_; - ::caffe::FillerParameter* weight_filler_; - ::google::protobuf::uint32 num_output_; - ::google::protobuf::uint32 pad_; - ::caffe::FillerParameter* bias_filler_; - ::google::protobuf::uint32 kernelsize_; - ::google::protobuf::uint32 group_; - ::google::protobuf::uint32 stride_; - int pool_; - float dropout_ratio_; - ::google::protobuf::uint32 local_size_; - float alpha_; - float beta_; - float k_; - float scale_; - ::std::string* source_; - ::std::string* meanfile_; - ::google::protobuf::uint32 batchsize_; - bool biasterm_; - bool mirror_; - bool shuffle_images_; - ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto > blobs_; - ::google::protobuf::uint32 cropsize_; - ::google::protobuf::uint32 rand_skip_; - ::google::protobuf::RepeatedField< float > blobs_lr_; - ::google::protobuf::RepeatedField< float > weight_decay_; - float det_fg_threshold_; - float det_bg_threshold_; - float det_fg_fraction_; - ::google::protobuf::uint32 det_context_pad_; - ::std::string* det_crop_mode_; - static ::std::string* _default_det_crop_mode_; - ::google::protobuf::int32 new_num_; - ::google::protobuf::int32 new_channels_; - ::google::protobuf::int32 new_height_; - ::google::protobuf::int32 new_width_; - ::caffe::HDF5OutputParameter* hdf5_output_param_; - ::google::protobuf::uint32 concat_dim_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(38 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static V0LayerParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class PReLUParameter : public ::google::protobuf::Message { - public: - PReLUParameter(); - virtual ~PReLUParameter(); - - PReLUParameter(const PReLUParameter& from); - - inline PReLUParameter& operator=(const PReLUParameter& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const PReLUParameter& default_instance(); - - void Swap(PReLUParameter* other); - - // implements Message ---------------------------------------------- - - PReLUParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const PReLUParameter& from); - void MergeFrom(const PReLUParameter& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .caffe.FillerParameter filler = 1; - inline bool has_filler() const; - inline void clear_filler(); - static const int kFillerFieldNumber = 1; - inline const ::caffe::FillerParameter& filler() const; - inline ::caffe::FillerParameter* mutable_filler(); - inline ::caffe::FillerParameter* release_filler(); - inline void set_allocated_filler(::caffe::FillerParameter* filler); - - // optional bool channel_shared = 2 [default = false]; - inline bool has_channel_shared() const; - inline void clear_channel_shared(); - static const int kChannelSharedFieldNumber = 2; - inline bool channel_shared() const; - inline void set_channel_shared(bool value); - - // @@protoc_insertion_point(class_scope: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(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::caffe::FillerParameter* filler_; - bool channel_shared_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_caffe_2eproto(); - friend void protobuf_AssignDesc_caffe_2eproto(); - friend void protobuf_ShutdownFile_caffe_2eproto(); - - void InitAsDefaultInstance(); - static PReLUParameter* default_instance_; -}; -// =================================================================== - - -// =================================================================== - -// BlobShape - -// repeated int64 dim = 1 [packed = true]; -inline int BlobShape::dim_size() const { - return dim_.size(); -} -inline void BlobShape::clear_dim() { - dim_.Clear(); -} -inline ::google::protobuf::int64 BlobShape::dim(int index) const { - return dim_.Get(index); -} -inline void BlobShape::set_dim(int index, ::google::protobuf::int64 value) { - dim_.Set(index, value); -} -inline void BlobShape::add_dim(::google::protobuf::int64 value) { - dim_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -BlobShape::dim() const { - return dim_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -BlobShape::mutable_dim() { - return &dim_; -} - -// ------------------------------------------------------------------- - -// BlobProto - -// optional .caffe.BlobShape shape = 7; -inline bool BlobProto::has_shape() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void BlobProto::set_has_shape() { - _has_bits_[0] |= 0x00000001u; -} -inline void BlobProto::clear_has_shape() { - _has_bits_[0] &= ~0x00000001u; -} -inline void BlobProto::clear_shape() { - if (shape_ != NULL) shape_->::caffe::BlobShape::Clear(); - clear_has_shape(); -} -inline const ::caffe::BlobShape& BlobProto::shape() const { - return shape_ != NULL ? *shape_ : *default_instance_->shape_; -} -inline ::caffe::BlobShape* BlobProto::mutable_shape() { - set_has_shape(); - if (shape_ == NULL) shape_ = new ::caffe::BlobShape; - return shape_; -} -inline ::caffe::BlobShape* BlobProto::release_shape() { - clear_has_shape(); - ::caffe::BlobShape* temp = shape_; - shape_ = NULL; - return temp; -} -inline void BlobProto::set_allocated_shape(::caffe::BlobShape* shape) { - delete shape_; - shape_ = shape; - if (shape) { - set_has_shape(); - } else { - clear_has_shape(); - } -} - -// repeated float data = 5 [packed = true]; -inline int BlobProto::data_size() const { - return data_.size(); -} -inline void BlobProto::clear_data() { - data_.Clear(); -} -inline float BlobProto::data(int index) const { - return data_.Get(index); -} -inline void BlobProto::set_data(int index, float value) { - data_.Set(index, value); -} -inline void BlobProto::add_data(float value) { - data_.Add(value); -} -inline const ::google::protobuf::RepeatedField< float >& -BlobProto::data() const { - return data_; -} -inline ::google::protobuf::RepeatedField< float >* -BlobProto::mutable_data() { - return &data_; -} - -// repeated float diff = 6 [packed = true]; -inline int BlobProto::diff_size() const { - return diff_.size(); -} -inline void BlobProto::clear_diff() { - diff_.Clear(); -} -inline float BlobProto::diff(int index) const { - return diff_.Get(index); -} -inline void BlobProto::set_diff(int index, float value) { - diff_.Set(index, value); -} -inline void BlobProto::add_diff(float value) { - diff_.Add(value); -} -inline const ::google::protobuf::RepeatedField< float >& -BlobProto::diff() const { - return diff_; -} -inline ::google::protobuf::RepeatedField< float >* -BlobProto::mutable_diff() { - return &diff_; -} - -// optional int32 num = 1 [default = 0]; -inline bool BlobProto::has_num() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void BlobProto::set_has_num() { - _has_bits_[0] |= 0x00000008u; -} -inline void BlobProto::clear_has_num() { - _has_bits_[0] &= ~0x00000008u; -} -inline void BlobProto::clear_num() { - num_ = 0; - clear_has_num(); -} -inline ::google::protobuf::int32 BlobProto::num() const { - return num_; -} -inline void BlobProto::set_num(::google::protobuf::int32 value) { - set_has_num(); - num_ = value; -} - -// optional int32 channels = 2 [default = 0]; -inline bool BlobProto::has_channels() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void BlobProto::set_has_channels() { - _has_bits_[0] |= 0x00000010u; -} -inline void BlobProto::clear_has_channels() { - _has_bits_[0] &= ~0x00000010u; -} -inline void BlobProto::clear_channels() { - channels_ = 0; - clear_has_channels(); -} -inline ::google::protobuf::int32 BlobProto::channels() const { - return channels_; -} -inline void BlobProto::set_channels(::google::protobuf::int32 value) { - set_has_channels(); - channels_ = value; -} - -// optional int32 height = 3 [default = 0]; -inline bool BlobProto::has_height() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void BlobProto::set_has_height() { - _has_bits_[0] |= 0x00000020u; -} -inline void BlobProto::clear_has_height() { - _has_bits_[0] &= ~0x00000020u; -} -inline void BlobProto::clear_height() { - height_ = 0; - clear_has_height(); -} -inline ::google::protobuf::int32 BlobProto::height() const { - return height_; -} -inline void BlobProto::set_height(::google::protobuf::int32 value) { - set_has_height(); - height_ = value; -} - -// optional int32 width = 4 [default = 0]; -inline bool BlobProto::has_width() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void BlobProto::set_has_width() { - _has_bits_[0] |= 0x00000040u; -} -inline void BlobProto::clear_has_width() { - _has_bits_[0] &= ~0x00000040u; -} -inline void BlobProto::clear_width() { - width_ = 0; - clear_has_width(); -} -inline ::google::protobuf::int32 BlobProto::width() const { - return width_; -} -inline void BlobProto::set_width(::google::protobuf::int32 value) { - set_has_width(); - width_ = value; -} - -// ------------------------------------------------------------------- - -// BlobProtoVector - -// repeated .caffe.BlobProto blobs = 1; -inline int BlobProtoVector::blobs_size() const { - return blobs_.size(); -} -inline void BlobProtoVector::clear_blobs() { - blobs_.Clear(); -} -inline const ::caffe::BlobProto& BlobProtoVector::blobs(int index) const { - return blobs_.Get(index); -} -inline ::caffe::BlobProto* BlobProtoVector::mutable_blobs(int index) { - return blobs_.Mutable(index); -} -inline ::caffe::BlobProto* BlobProtoVector::add_blobs() { - return blobs_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >& -BlobProtoVector::blobs() const { - return blobs_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >* -BlobProtoVector::mutable_blobs() { - return &blobs_; -} - -// ------------------------------------------------------------------- - -// Datum - -// optional int32 channels = 1; -inline bool Datum::has_channels() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void Datum::set_has_channels() { - _has_bits_[0] |= 0x00000001u; -} -inline void Datum::clear_has_channels() { - _has_bits_[0] &= ~0x00000001u; -} -inline void Datum::clear_channels() { - channels_ = 0; - clear_has_channels(); -} -inline ::google::protobuf::int32 Datum::channels() const { - return channels_; -} -inline void Datum::set_channels(::google::protobuf::int32 value) { - set_has_channels(); - channels_ = value; -} - -// optional int32 height = 2; -inline bool Datum::has_height() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void Datum::set_has_height() { - _has_bits_[0] |= 0x00000002u; -} -inline void Datum::clear_has_height() { - _has_bits_[0] &= ~0x00000002u; -} -inline void Datum::clear_height() { - height_ = 0; - clear_has_height(); -} -inline ::google::protobuf::int32 Datum::height() const { - return height_; -} -inline void Datum::set_height(::google::protobuf::int32 value) { - set_has_height(); - height_ = value; -} - -// optional int32 width = 3; -inline bool Datum::has_width() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void Datum::set_has_width() { - _has_bits_[0] |= 0x00000004u; -} -inline void Datum::clear_has_width() { - _has_bits_[0] &= ~0x00000004u; -} -inline void Datum::clear_width() { - width_ = 0; - clear_has_width(); -} -inline ::google::protobuf::int32 Datum::width() const { - return width_; -} -inline void Datum::set_width(::google::protobuf::int32 value) { - set_has_width(); - width_ = value; -} - -// optional bytes data = 4; -inline bool Datum::has_data() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void Datum::set_has_data() { - _has_bits_[0] |= 0x00000008u; -} -inline void Datum::clear_has_data() { - _has_bits_[0] &= ~0x00000008u; -} -inline void Datum::clear_data() { - if (data_ != &::google::protobuf::internal::kEmptyString) { - data_->clear(); - } - clear_has_data(); -} -inline const ::std::string& Datum::data() const { - return *data_; -} -inline void Datum::set_data(const ::std::string& value) { - set_has_data(); - if (data_ == &::google::protobuf::internal::kEmptyString) { - data_ = new ::std::string; - } - data_->assign(value); -} -inline void Datum::set_data(const char* value) { - set_has_data(); - if (data_ == &::google::protobuf::internal::kEmptyString) { - data_ = new ::std::string; - } - data_->assign(value); -} -inline void Datum::set_data(const void* value, size_t size) { - set_has_data(); - if (data_ == &::google::protobuf::internal::kEmptyString) { - data_ = new ::std::string; - } - data_->assign(reinterpret_cast(value), size); -} -inline ::std::string* Datum::mutable_data() { - set_has_data(); - if (data_ == &::google::protobuf::internal::kEmptyString) { - data_ = new ::std::string; - } - return data_; -} -inline ::std::string* Datum::release_data() { - clear_has_data(); - if (data_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = data_; - data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void Datum::set_allocated_data(::std::string* data) { - if (data_ != &::google::protobuf::internal::kEmptyString) { - delete data_; - } - if (data) { - set_has_data(); - data_ = data; - } else { - clear_has_data(); - data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional int32 label = 5; -inline bool Datum::has_label() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void Datum::set_has_label() { - _has_bits_[0] |= 0x00000010u; -} -inline void Datum::clear_has_label() { - _has_bits_[0] &= ~0x00000010u; -} -inline void Datum::clear_label() { - label_ = 0; - clear_has_label(); -} -inline ::google::protobuf::int32 Datum::label() const { - return label_; -} -inline void Datum::set_label(::google::protobuf::int32 value) { - set_has_label(); - label_ = value; -} - -// repeated float float_data = 6; -inline int Datum::float_data_size() const { - return float_data_.size(); -} -inline void Datum::clear_float_data() { - float_data_.Clear(); -} -inline float Datum::float_data(int index) const { - return float_data_.Get(index); -} -inline void Datum::set_float_data(int index, float value) { - float_data_.Set(index, value); -} -inline void Datum::add_float_data(float value) { - float_data_.Add(value); -} -inline const ::google::protobuf::RepeatedField< float >& -Datum::float_data() const { - return float_data_; -} -inline ::google::protobuf::RepeatedField< float >* -Datum::mutable_float_data() { - return &float_data_; -} - -// optional bool encoded = 7 [default = false]; -inline bool Datum::has_encoded() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void Datum::set_has_encoded() { - _has_bits_[0] |= 0x00000040u; -} -inline void Datum::clear_has_encoded() { - _has_bits_[0] &= ~0x00000040u; -} -inline void Datum::clear_encoded() { - encoded_ = false; - clear_has_encoded(); -} -inline bool Datum::encoded() const { - return encoded_; -} -inline void Datum::set_encoded(bool value) { - set_has_encoded(); - encoded_ = value; -} - -// ------------------------------------------------------------------- - -// FillerParameter - -// optional string type = 1 [default = "constant"]; -inline bool FillerParameter::has_type() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void FillerParameter::set_has_type() { - _has_bits_[0] |= 0x00000001u; -} -inline void FillerParameter::clear_has_type() { - _has_bits_[0] &= ~0x00000001u; -} -inline void FillerParameter::clear_type() { - if (type_ != _default_type_) { - type_->assign(*_default_type_); - } - clear_has_type(); -} -inline const ::std::string& FillerParameter::type() const { - return *type_; -} -inline void FillerParameter::set_type(const ::std::string& value) { - set_has_type(); - if (type_ == _default_type_) { - type_ = new ::std::string; - } - type_->assign(value); -} -inline void FillerParameter::set_type(const char* value) { - set_has_type(); - if (type_ == _default_type_) { - type_ = new ::std::string; - } - type_->assign(value); -} -inline void FillerParameter::set_type(const char* value, size_t size) { - set_has_type(); - if (type_ == _default_type_) { - type_ = new ::std::string; - } - type_->assign(reinterpret_cast(value), size); -} -inline ::std::string* FillerParameter::mutable_type() { - set_has_type(); - if (type_ == _default_type_) { - type_ = new ::std::string(*_default_type_); - } - return type_; -} -inline ::std::string* FillerParameter::release_type() { - clear_has_type(); - if (type_ == _default_type_) { - return NULL; - } else { - ::std::string* temp = type_; - type_ = const_cast< ::std::string*>(_default_type_); - return temp; - } -} -inline void FillerParameter::set_allocated_type(::std::string* type) { - if (type_ != _default_type_) { - delete type_; - } - if (type) { - set_has_type(); - type_ = type; - } else { - clear_has_type(); - type_ = const_cast< ::std::string*>(_default_type_); - } -} - -// optional float value = 2 [default = 0]; -inline bool FillerParameter::has_value() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void FillerParameter::set_has_value() { - _has_bits_[0] |= 0x00000002u; -} -inline void FillerParameter::clear_has_value() { - _has_bits_[0] &= ~0x00000002u; -} -inline void FillerParameter::clear_value() { - value_ = 0; - clear_has_value(); -} -inline float FillerParameter::value() const { - return value_; -} -inline void FillerParameter::set_value(float value) { - set_has_value(); - value_ = value; -} - -// optional float min = 3 [default = 0]; -inline bool FillerParameter::has_min() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void FillerParameter::set_has_min() { - _has_bits_[0] |= 0x00000004u; -} -inline void FillerParameter::clear_has_min() { - _has_bits_[0] &= ~0x00000004u; -} -inline void FillerParameter::clear_min() { - min_ = 0; - clear_has_min(); -} -inline float FillerParameter::min() const { - return min_; -} -inline void FillerParameter::set_min(float value) { - set_has_min(); - min_ = value; -} - -// optional float max = 4 [default = 1]; -inline bool FillerParameter::has_max() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void FillerParameter::set_has_max() { - _has_bits_[0] |= 0x00000008u; -} -inline void FillerParameter::clear_has_max() { - _has_bits_[0] &= ~0x00000008u; -} -inline void FillerParameter::clear_max() { - max_ = 1; - clear_has_max(); -} -inline float FillerParameter::max() const { - return max_; -} -inline void FillerParameter::set_max(float value) { - set_has_max(); - max_ = value; -} - -// optional float mean = 5 [default = 0]; -inline bool FillerParameter::has_mean() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void FillerParameter::set_has_mean() { - _has_bits_[0] |= 0x00000010u; -} -inline void FillerParameter::clear_has_mean() { - _has_bits_[0] &= ~0x00000010u; -} -inline void FillerParameter::clear_mean() { - mean_ = 0; - clear_has_mean(); -} -inline float FillerParameter::mean() const { - return mean_; -} -inline void FillerParameter::set_mean(float value) { - set_has_mean(); - mean_ = value; -} - -// optional float std = 6 [default = 1]; -inline bool FillerParameter::has_std() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void FillerParameter::set_has_std() { - _has_bits_[0] |= 0x00000020u; -} -inline void FillerParameter::clear_has_std() { - _has_bits_[0] &= ~0x00000020u; -} -inline void FillerParameter::clear_std() { - std_ = 1; - clear_has_std(); -} -inline float FillerParameter::std() const { - return std_; -} -inline void FillerParameter::set_std(float value) { - set_has_std(); - std_ = value; -} - -// optional int32 sparse = 7 [default = -1]; -inline bool FillerParameter::has_sparse() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void FillerParameter::set_has_sparse() { - _has_bits_[0] |= 0x00000040u; -} -inline void FillerParameter::clear_has_sparse() { - _has_bits_[0] &= ~0x00000040u; -} -inline void FillerParameter::clear_sparse() { - sparse_ = -1; - clear_has_sparse(); -} -inline ::google::protobuf::int32 FillerParameter::sparse() const { - return sparse_; -} -inline void FillerParameter::set_sparse(::google::protobuf::int32 value) { - set_has_sparse(); - sparse_ = value; -} - -// optional .caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN]; -inline bool FillerParameter::has_variance_norm() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -inline void FillerParameter::set_has_variance_norm() { - _has_bits_[0] |= 0x00000080u; -} -inline void FillerParameter::clear_has_variance_norm() { - _has_bits_[0] &= ~0x00000080u; -} -inline void FillerParameter::clear_variance_norm() { - variance_norm_ = 0; - clear_has_variance_norm(); -} -inline ::caffe::FillerParameter_VarianceNorm FillerParameter::variance_norm() const { - return static_cast< ::caffe::FillerParameter_VarianceNorm >(variance_norm_); -} -inline void FillerParameter::set_variance_norm(::caffe::FillerParameter_VarianceNorm value) { - assert(::caffe::FillerParameter_VarianceNorm_IsValid(value)); - set_has_variance_norm(); - variance_norm_ = value; -} - -// ------------------------------------------------------------------- - -// NetParameter - -// optional string name = 1; -inline bool NetParameter::has_name() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void NetParameter::set_has_name() { - _has_bits_[0] |= 0x00000001u; -} -inline void NetParameter::clear_has_name() { - _has_bits_[0] &= ~0x00000001u; -} -inline void NetParameter::clear_name() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - clear_has_name(); -} -inline const ::std::string& NetParameter::name() const { - return *name_; -} -inline void NetParameter::set_name(const ::std::string& value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void NetParameter::set_name(const char* value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void NetParameter::set_name(const char* value, size_t size) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(reinterpret_cast(value), size); -} -inline ::std::string* NetParameter::mutable_name() { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - return name_; -} -inline ::std::string* NetParameter::release_name() { - clear_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = name_; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void NetParameter::set_allocated_name(::std::string* name) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (name) { - set_has_name(); - name_ = name; - } else { - clear_has_name(); - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// repeated string input = 3; -inline int NetParameter::input_size() const { - return input_.size(); -} -inline void NetParameter::clear_input() { - input_.Clear(); -} -inline const ::std::string& NetParameter::input(int index) const { - return input_.Get(index); -} -inline ::std::string* NetParameter::mutable_input(int index) { - return input_.Mutable(index); -} -inline void NetParameter::set_input(int index, const ::std::string& value) { - input_.Mutable(index)->assign(value); -} -inline void NetParameter::set_input(int index, const char* value) { - input_.Mutable(index)->assign(value); -} -inline void NetParameter::set_input(int index, const char* value, size_t size) { - input_.Mutable(index)->assign( - reinterpret_cast(value), size); -} -inline ::std::string* NetParameter::add_input() { - return input_.Add(); -} -inline void NetParameter::add_input(const ::std::string& value) { - input_.Add()->assign(value); -} -inline void NetParameter::add_input(const char* value) { - input_.Add()->assign(value); -} -inline void NetParameter::add_input(const char* value, size_t size) { - input_.Add()->assign(reinterpret_cast(value), size); -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -NetParameter::input() const { - return input_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -NetParameter::mutable_input() { - return &input_; -} - -// repeated .caffe.BlobShape input_shape = 8; -inline int NetParameter::input_shape_size() const { - return input_shape_.size(); -} -inline void NetParameter::clear_input_shape() { - input_shape_.Clear(); -} -inline const ::caffe::BlobShape& NetParameter::input_shape(int index) const { - return input_shape_.Get(index); -} -inline ::caffe::BlobShape* NetParameter::mutable_input_shape(int index) { - return input_shape_.Mutable(index); -} -inline ::caffe::BlobShape* NetParameter::add_input_shape() { - return input_shape_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobShape >& -NetParameter::input_shape() const { - return input_shape_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobShape >* -NetParameter::mutable_input_shape() { - return &input_shape_; -} - -// repeated int32 input_dim = 4; -inline int NetParameter::input_dim_size() const { - return input_dim_.size(); -} -inline void NetParameter::clear_input_dim() { - input_dim_.Clear(); -} -inline ::google::protobuf::int32 NetParameter::input_dim(int index) const { - return input_dim_.Get(index); -} -inline void NetParameter::set_input_dim(int index, ::google::protobuf::int32 value) { - input_dim_.Set(index, value); -} -inline void NetParameter::add_input_dim(::google::protobuf::int32 value) { - input_dim_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -NetParameter::input_dim() const { - return input_dim_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -NetParameter::mutable_input_dim() { - return &input_dim_; -} - -// optional bool force_backward = 5 [default = false]; -inline bool NetParameter::has_force_backward() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void NetParameter::set_has_force_backward() { - _has_bits_[0] |= 0x00000010u; -} -inline void NetParameter::clear_has_force_backward() { - _has_bits_[0] &= ~0x00000010u; -} -inline void NetParameter::clear_force_backward() { - force_backward_ = false; - clear_has_force_backward(); -} -inline bool NetParameter::force_backward() const { - return force_backward_; -} -inline void NetParameter::set_force_backward(bool value) { - set_has_force_backward(); - force_backward_ = value; -} - -// optional .caffe.NetState state = 6; -inline bool NetParameter::has_state() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void NetParameter::set_has_state() { - _has_bits_[0] |= 0x00000020u; -} -inline void NetParameter::clear_has_state() { - _has_bits_[0] &= ~0x00000020u; -} -inline void NetParameter::clear_state() { - if (state_ != NULL) state_->::caffe::NetState::Clear(); - clear_has_state(); -} -inline const ::caffe::NetState& NetParameter::state() const { - return state_ != NULL ? *state_ : *default_instance_->state_; -} -inline ::caffe::NetState* NetParameter::mutable_state() { - set_has_state(); - if (state_ == NULL) state_ = new ::caffe::NetState; - return state_; -} -inline ::caffe::NetState* NetParameter::release_state() { - clear_has_state(); - ::caffe::NetState* temp = state_; - state_ = NULL; - return temp; -} -inline void NetParameter::set_allocated_state(::caffe::NetState* state) { - delete state_; - state_ = state; - if (state) { - set_has_state(); - } else { - clear_has_state(); - } -} - -// optional bool debug_info = 7 [default = false]; -inline bool NetParameter::has_debug_info() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void NetParameter::set_has_debug_info() { - _has_bits_[0] |= 0x00000040u; -} -inline void NetParameter::clear_has_debug_info() { - _has_bits_[0] &= ~0x00000040u; -} -inline void NetParameter::clear_debug_info() { - debug_info_ = false; - clear_has_debug_info(); -} -inline bool NetParameter::debug_info() const { - return debug_info_; -} -inline void NetParameter::set_debug_info(bool value) { - set_has_debug_info(); - debug_info_ = value; -} - -// repeated .caffe.LayerParameter layer = 100; -inline int NetParameter::layer_size() const { - return layer_.size(); -} -inline void NetParameter::clear_layer() { - layer_.Clear(); -} -inline const ::caffe::LayerParameter& NetParameter::layer(int index) const { - return layer_.Get(index); -} -inline ::caffe::LayerParameter* NetParameter::mutable_layer(int index) { - return layer_.Mutable(index); -} -inline ::caffe::LayerParameter* NetParameter::add_layer() { - return layer_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::LayerParameter >& -NetParameter::layer() const { - return layer_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::LayerParameter >* -NetParameter::mutable_layer() { - return &layer_; -} - -// repeated .caffe.V1LayerParameter layers = 2; -inline int NetParameter::layers_size() const { - return layers_.size(); -} -inline void NetParameter::clear_layers() { - layers_.Clear(); -} -inline const ::caffe::V1LayerParameter& NetParameter::layers(int index) const { - return layers_.Get(index); -} -inline ::caffe::V1LayerParameter* NetParameter::mutable_layers(int index) { - return layers_.Mutable(index); -} -inline ::caffe::V1LayerParameter* NetParameter::add_layers() { - return layers_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::V1LayerParameter >& -NetParameter::layers() const { - return layers_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::V1LayerParameter >* -NetParameter::mutable_layers() { - return &layers_; -} - -// ------------------------------------------------------------------- - -// SolverParameter - -// optional string net = 24; -inline bool SolverParameter::has_net() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void SolverParameter::set_has_net() { - _has_bits_[0] |= 0x00000001u; -} -inline void SolverParameter::clear_has_net() { - _has_bits_[0] &= ~0x00000001u; -} -inline void SolverParameter::clear_net() { - if (net_ != &::google::protobuf::internal::kEmptyString) { - net_->clear(); - } - clear_has_net(); -} -inline const ::std::string& SolverParameter::net() const { - return *net_; -} -inline void SolverParameter::set_net(const ::std::string& value) { - set_has_net(); - if (net_ == &::google::protobuf::internal::kEmptyString) { - net_ = new ::std::string; - } - net_->assign(value); -} -inline void SolverParameter::set_net(const char* value) { - set_has_net(); - if (net_ == &::google::protobuf::internal::kEmptyString) { - net_ = new ::std::string; - } - net_->assign(value); -} -inline void SolverParameter::set_net(const char* value, size_t size) { - set_has_net(); - if (net_ == &::google::protobuf::internal::kEmptyString) { - net_ = new ::std::string; - } - net_->assign(reinterpret_cast(value), size); -} -inline ::std::string* SolverParameter::mutable_net() { - set_has_net(); - if (net_ == &::google::protobuf::internal::kEmptyString) { - net_ = new ::std::string; - } - return net_; -} -inline ::std::string* SolverParameter::release_net() { - clear_has_net(); - if (net_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = net_; - net_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void SolverParameter::set_allocated_net(::std::string* net) { - if (net_ != &::google::protobuf::internal::kEmptyString) { - delete net_; - } - if (net) { - set_has_net(); - net_ = net; - } else { - clear_has_net(); - net_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional .caffe.NetParameter net_param = 25; -inline bool SolverParameter::has_net_param() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void SolverParameter::set_has_net_param() { - _has_bits_[0] |= 0x00000002u; -} -inline void SolverParameter::clear_has_net_param() { - _has_bits_[0] &= ~0x00000002u; -} -inline void SolverParameter::clear_net_param() { - if (net_param_ != NULL) net_param_->::caffe::NetParameter::Clear(); - clear_has_net_param(); -} -inline const ::caffe::NetParameter& SolverParameter::net_param() const { - return net_param_ != NULL ? *net_param_ : *default_instance_->net_param_; -} -inline ::caffe::NetParameter* SolverParameter::mutable_net_param() { - set_has_net_param(); - if (net_param_ == NULL) net_param_ = new ::caffe::NetParameter; - return net_param_; -} -inline ::caffe::NetParameter* SolverParameter::release_net_param() { - clear_has_net_param(); - ::caffe::NetParameter* temp = net_param_; - net_param_ = NULL; - return temp; -} -inline void SolverParameter::set_allocated_net_param(::caffe::NetParameter* net_param) { - delete net_param_; - net_param_ = net_param; - if (net_param) { - set_has_net_param(); - } else { - clear_has_net_param(); - } -} - -// optional string train_net = 1; -inline bool SolverParameter::has_train_net() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void SolverParameter::set_has_train_net() { - _has_bits_[0] |= 0x00000004u; -} -inline void SolverParameter::clear_has_train_net() { - _has_bits_[0] &= ~0x00000004u; -} -inline void SolverParameter::clear_train_net() { - if (train_net_ != &::google::protobuf::internal::kEmptyString) { - train_net_->clear(); - } - clear_has_train_net(); -} -inline const ::std::string& SolverParameter::train_net() const { - return *train_net_; -} -inline void SolverParameter::set_train_net(const ::std::string& value) { - set_has_train_net(); - if (train_net_ == &::google::protobuf::internal::kEmptyString) { - train_net_ = new ::std::string; - } - train_net_->assign(value); -} -inline void SolverParameter::set_train_net(const char* value) { - set_has_train_net(); - if (train_net_ == &::google::protobuf::internal::kEmptyString) { - train_net_ = new ::std::string; - } - train_net_->assign(value); -} -inline void SolverParameter::set_train_net(const char* value, size_t size) { - set_has_train_net(); - if (train_net_ == &::google::protobuf::internal::kEmptyString) { - train_net_ = new ::std::string; - } - train_net_->assign(reinterpret_cast(value), size); -} -inline ::std::string* SolverParameter::mutable_train_net() { - set_has_train_net(); - if (train_net_ == &::google::protobuf::internal::kEmptyString) { - train_net_ = new ::std::string; - } - return train_net_; -} -inline ::std::string* SolverParameter::release_train_net() { - clear_has_train_net(); - if (train_net_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = train_net_; - train_net_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void SolverParameter::set_allocated_train_net(::std::string* train_net) { - if (train_net_ != &::google::protobuf::internal::kEmptyString) { - delete train_net_; - } - if (train_net) { - set_has_train_net(); - train_net_ = train_net; - } else { - clear_has_train_net(); - train_net_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// repeated string test_net = 2; -inline int SolverParameter::test_net_size() const { - return test_net_.size(); -} -inline void SolverParameter::clear_test_net() { - test_net_.Clear(); -} -inline const ::std::string& SolverParameter::test_net(int index) const { - return test_net_.Get(index); -} -inline ::std::string* SolverParameter::mutable_test_net(int index) { - return test_net_.Mutable(index); -} -inline void SolverParameter::set_test_net(int index, const ::std::string& value) { - test_net_.Mutable(index)->assign(value); -} -inline void SolverParameter::set_test_net(int index, const char* value) { - test_net_.Mutable(index)->assign(value); -} -inline void SolverParameter::set_test_net(int index, const char* value, size_t size) { - test_net_.Mutable(index)->assign( - reinterpret_cast(value), size); -} -inline ::std::string* SolverParameter::add_test_net() { - return test_net_.Add(); -} -inline void SolverParameter::add_test_net(const ::std::string& value) { - test_net_.Add()->assign(value); -} -inline void SolverParameter::add_test_net(const char* value) { - test_net_.Add()->assign(value); -} -inline void SolverParameter::add_test_net(const char* value, size_t size) { - test_net_.Add()->assign(reinterpret_cast(value), size); -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -SolverParameter::test_net() const { - return test_net_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -SolverParameter::mutable_test_net() { - return &test_net_; -} - -// optional .caffe.NetParameter train_net_param = 21; -inline bool SolverParameter::has_train_net_param() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void SolverParameter::set_has_train_net_param() { - _has_bits_[0] |= 0x00000010u; -} -inline void SolverParameter::clear_has_train_net_param() { - _has_bits_[0] &= ~0x00000010u; -} -inline void SolverParameter::clear_train_net_param() { - if (train_net_param_ != NULL) train_net_param_->::caffe::NetParameter::Clear(); - clear_has_train_net_param(); -} -inline const ::caffe::NetParameter& SolverParameter::train_net_param() const { - return train_net_param_ != NULL ? *train_net_param_ : *default_instance_->train_net_param_; -} -inline ::caffe::NetParameter* SolverParameter::mutable_train_net_param() { - set_has_train_net_param(); - if (train_net_param_ == NULL) train_net_param_ = new ::caffe::NetParameter; - return train_net_param_; -} -inline ::caffe::NetParameter* SolverParameter::release_train_net_param() { - clear_has_train_net_param(); - ::caffe::NetParameter* temp = train_net_param_; - train_net_param_ = NULL; - return temp; -} -inline void SolverParameter::set_allocated_train_net_param(::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(); - } -} - -// repeated .caffe.NetParameter test_net_param = 22; -inline int SolverParameter::test_net_param_size() const { - return test_net_param_.size(); -} -inline void SolverParameter::clear_test_net_param() { - test_net_param_.Clear(); -} -inline const ::caffe::NetParameter& SolverParameter::test_net_param(int index) const { - return test_net_param_.Get(index); -} -inline ::caffe::NetParameter* SolverParameter::mutable_test_net_param(int index) { - return test_net_param_.Mutable(index); -} -inline ::caffe::NetParameter* SolverParameter::add_test_net_param() { - return test_net_param_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetParameter >& -SolverParameter::test_net_param() const { - return test_net_param_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::NetParameter >* -SolverParameter::mutable_test_net_param() { - return &test_net_param_; -} - -// optional .caffe.NetState train_state = 26; -inline bool SolverParameter::has_train_state() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void SolverParameter::set_has_train_state() { - _has_bits_[0] |= 0x00000040u; -} -inline void SolverParameter::clear_has_train_state() { - _has_bits_[0] &= ~0x00000040u; -} -inline void SolverParameter::clear_train_state() { - if (train_state_ != NULL) train_state_->::caffe::NetState::Clear(); - clear_has_train_state(); -} -inline const ::caffe::NetState& SolverParameter::train_state() const { - return train_state_ != NULL ? *train_state_ : *default_instance_->train_state_; -} -inline ::caffe::NetState* SolverParameter::mutable_train_state() { - set_has_train_state(); - if (train_state_ == NULL) train_state_ = new ::caffe::NetState; - return train_state_; -} -inline ::caffe::NetState* SolverParameter::release_train_state() { - clear_has_train_state(); - ::caffe::NetState* temp = train_state_; - train_state_ = NULL; - return temp; -} -inline void SolverParameter::set_allocated_train_state(::caffe::NetState* train_state) { - delete train_state_; - train_state_ = train_state; - if (train_state) { - set_has_train_state(); - } else { - clear_has_train_state(); - } -} - -// repeated .caffe.NetState test_state = 27; -inline int SolverParameter::test_state_size() const { - return test_state_.size(); -} -inline void SolverParameter::clear_test_state() { - test_state_.Clear(); -} -inline const ::caffe::NetState& SolverParameter::test_state(int index) const { - return test_state_.Get(index); -} -inline ::caffe::NetState* SolverParameter::mutable_test_state(int index) { - return test_state_.Mutable(index); -} -inline ::caffe::NetState* SolverParameter::add_test_state() { - return test_state_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetState >& -SolverParameter::test_state() const { - return test_state_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::NetState >* -SolverParameter::mutable_test_state() { - return &test_state_; -} - -// repeated int32 test_iter = 3; -inline int SolverParameter::test_iter_size() const { - return test_iter_.size(); -} -inline void SolverParameter::clear_test_iter() { - test_iter_.Clear(); -} -inline ::google::protobuf::int32 SolverParameter::test_iter(int index) const { - return test_iter_.Get(index); -} -inline void SolverParameter::set_test_iter(int index, ::google::protobuf::int32 value) { - test_iter_.Set(index, value); -} -inline void SolverParameter::add_test_iter(::google::protobuf::int32 value) { - test_iter_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -SolverParameter::test_iter() const { - return test_iter_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -SolverParameter::mutable_test_iter() { - return &test_iter_; -} - -// optional int32 test_interval = 4 [default = 0]; -inline bool SolverParameter::has_test_interval() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -inline void SolverParameter::set_has_test_interval() { - _has_bits_[0] |= 0x00000200u; -} -inline void SolverParameter::clear_has_test_interval() { - _has_bits_[0] &= ~0x00000200u; -} -inline void SolverParameter::clear_test_interval() { - test_interval_ = 0; - clear_has_test_interval(); -} -inline ::google::protobuf::int32 SolverParameter::test_interval() const { - return test_interval_; -} -inline void SolverParameter::set_test_interval(::google::protobuf::int32 value) { - set_has_test_interval(); - test_interval_ = value; -} - -// optional bool test_compute_loss = 19 [default = false]; -inline bool SolverParameter::has_test_compute_loss() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -inline void SolverParameter::set_has_test_compute_loss() { - _has_bits_[0] |= 0x00000400u; -} -inline void SolverParameter::clear_has_test_compute_loss() { - _has_bits_[0] &= ~0x00000400u; -} -inline void SolverParameter::clear_test_compute_loss() { - test_compute_loss_ = false; - clear_has_test_compute_loss(); -} -inline bool SolverParameter::test_compute_loss() const { - return test_compute_loss_; -} -inline void SolverParameter::set_test_compute_loss(bool value) { - set_has_test_compute_loss(); - test_compute_loss_ = value; -} - -// optional bool test_initialization = 32 [default = true]; -inline bool SolverParameter::has_test_initialization() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -inline void SolverParameter::set_has_test_initialization() { - _has_bits_[0] |= 0x00000800u; -} -inline void SolverParameter::clear_has_test_initialization() { - _has_bits_[0] &= ~0x00000800u; -} -inline void SolverParameter::clear_test_initialization() { - test_initialization_ = true; - clear_has_test_initialization(); -} -inline bool SolverParameter::test_initialization() const { - return test_initialization_; -} -inline void SolverParameter::set_test_initialization(bool value) { - set_has_test_initialization(); - test_initialization_ = value; -} - -// optional float base_lr = 5; -inline bool SolverParameter::has_base_lr() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -inline void SolverParameter::set_has_base_lr() { - _has_bits_[0] |= 0x00001000u; -} -inline void SolverParameter::clear_has_base_lr() { - _has_bits_[0] &= ~0x00001000u; -} -inline void SolverParameter::clear_base_lr() { - base_lr_ = 0; - clear_has_base_lr(); -} -inline float SolverParameter::base_lr() const { - return base_lr_; -} -inline void SolverParameter::set_base_lr(float value) { - set_has_base_lr(); - base_lr_ = value; -} - -// optional int32 display = 6; -inline bool SolverParameter::has_display() const { - return (_has_bits_[0] & 0x00002000u) != 0; -} -inline void SolverParameter::set_has_display() { - _has_bits_[0] |= 0x00002000u; -} -inline void SolverParameter::clear_has_display() { - _has_bits_[0] &= ~0x00002000u; -} -inline void SolverParameter::clear_display() { - display_ = 0; - clear_has_display(); -} -inline ::google::protobuf::int32 SolverParameter::display() const { - return display_; -} -inline void SolverParameter::set_display(::google::protobuf::int32 value) { - set_has_display(); - display_ = value; -} - -// optional int32 average_loss = 33 [default = 1]; -inline bool SolverParameter::has_average_loss() const { - return (_has_bits_[0] & 0x00004000u) != 0; -} -inline void SolverParameter::set_has_average_loss() { - _has_bits_[0] |= 0x00004000u; -} -inline void SolverParameter::clear_has_average_loss() { - _has_bits_[0] &= ~0x00004000u; -} -inline void SolverParameter::clear_average_loss() { - average_loss_ = 1; - clear_has_average_loss(); -} -inline ::google::protobuf::int32 SolverParameter::average_loss() const { - return average_loss_; -} -inline void SolverParameter::set_average_loss(::google::protobuf::int32 value) { - set_has_average_loss(); - average_loss_ = value; -} - -// optional int32 max_iter = 7; -inline bool SolverParameter::has_max_iter() const { - return (_has_bits_[0] & 0x00008000u) != 0; -} -inline void SolverParameter::set_has_max_iter() { - _has_bits_[0] |= 0x00008000u; -} -inline void SolverParameter::clear_has_max_iter() { - _has_bits_[0] &= ~0x00008000u; -} -inline void SolverParameter::clear_max_iter() { - max_iter_ = 0; - clear_has_max_iter(); -} -inline ::google::protobuf::int32 SolverParameter::max_iter() const { - return max_iter_; -} -inline void SolverParameter::set_max_iter(::google::protobuf::int32 value) { - set_has_max_iter(); - max_iter_ = value; -} - -// optional int32 iter_size = 36 [default = 1]; -inline bool SolverParameter::has_iter_size() const { - return (_has_bits_[0] & 0x00010000u) != 0; -} -inline void SolverParameter::set_has_iter_size() { - _has_bits_[0] |= 0x00010000u; -} -inline void SolverParameter::clear_has_iter_size() { - _has_bits_[0] &= ~0x00010000u; -} -inline void SolverParameter::clear_iter_size() { - iter_size_ = 1; - clear_has_iter_size(); -} -inline ::google::protobuf::int32 SolverParameter::iter_size() const { - return iter_size_; -} -inline void SolverParameter::set_iter_size(::google::protobuf::int32 value) { - set_has_iter_size(); - iter_size_ = value; -} - -// optional string lr_policy = 8; -inline bool SolverParameter::has_lr_policy() const { - return (_has_bits_[0] & 0x00020000u) != 0; -} -inline void SolverParameter::set_has_lr_policy() { - _has_bits_[0] |= 0x00020000u; -} -inline void SolverParameter::clear_has_lr_policy() { - _has_bits_[0] &= ~0x00020000u; -} -inline void SolverParameter::clear_lr_policy() { - if (lr_policy_ != &::google::protobuf::internal::kEmptyString) { - lr_policy_->clear(); - } - clear_has_lr_policy(); -} -inline const ::std::string& SolverParameter::lr_policy() const { - return *lr_policy_; -} -inline void SolverParameter::set_lr_policy(const ::std::string& value) { - set_has_lr_policy(); - if (lr_policy_ == &::google::protobuf::internal::kEmptyString) { - lr_policy_ = new ::std::string; - } - lr_policy_->assign(value); -} -inline void SolverParameter::set_lr_policy(const char* value) { - set_has_lr_policy(); - if (lr_policy_ == &::google::protobuf::internal::kEmptyString) { - lr_policy_ = new ::std::string; - } - lr_policy_->assign(value); -} -inline void SolverParameter::set_lr_policy(const char* value, size_t size) { - set_has_lr_policy(); - if (lr_policy_ == &::google::protobuf::internal::kEmptyString) { - lr_policy_ = new ::std::string; - } - lr_policy_->assign(reinterpret_cast(value), size); -} -inline ::std::string* SolverParameter::mutable_lr_policy() { - set_has_lr_policy(); - if (lr_policy_ == &::google::protobuf::internal::kEmptyString) { - lr_policy_ = new ::std::string; - } - return lr_policy_; -} -inline ::std::string* SolverParameter::release_lr_policy() { - clear_has_lr_policy(); - if (lr_policy_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = lr_policy_; - lr_policy_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void SolverParameter::set_allocated_lr_policy(::std::string* lr_policy) { - if (lr_policy_ != &::google::protobuf::internal::kEmptyString) { - delete lr_policy_; - } - if (lr_policy) { - set_has_lr_policy(); - lr_policy_ = lr_policy; - } else { - clear_has_lr_policy(); - lr_policy_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional float gamma = 9; -inline bool SolverParameter::has_gamma() const { - return (_has_bits_[0] & 0x00040000u) != 0; -} -inline void SolverParameter::set_has_gamma() { - _has_bits_[0] |= 0x00040000u; -} -inline void SolverParameter::clear_has_gamma() { - _has_bits_[0] &= ~0x00040000u; -} -inline void SolverParameter::clear_gamma() { - gamma_ = 0; - clear_has_gamma(); -} -inline float SolverParameter::gamma() const { - return gamma_; -} -inline void SolverParameter::set_gamma(float value) { - set_has_gamma(); - gamma_ = value; -} - -// optional float power = 10; -inline bool SolverParameter::has_power() const { - return (_has_bits_[0] & 0x00080000u) != 0; -} -inline void SolverParameter::set_has_power() { - _has_bits_[0] |= 0x00080000u; -} -inline void SolverParameter::clear_has_power() { - _has_bits_[0] &= ~0x00080000u; -} -inline void SolverParameter::clear_power() { - power_ = 0; - clear_has_power(); -} -inline float SolverParameter::power() const { - return power_; -} -inline void SolverParameter::set_power(float value) { - set_has_power(); - power_ = value; -} - -// optional float momentum = 11; -inline bool SolverParameter::has_momentum() const { - return (_has_bits_[0] & 0x00100000u) != 0; -} -inline void SolverParameter::set_has_momentum() { - _has_bits_[0] |= 0x00100000u; -} -inline void SolverParameter::clear_has_momentum() { - _has_bits_[0] &= ~0x00100000u; -} -inline void SolverParameter::clear_momentum() { - momentum_ = 0; - clear_has_momentum(); -} -inline float SolverParameter::momentum() const { - return momentum_; -} -inline void SolverParameter::set_momentum(float value) { - set_has_momentum(); - momentum_ = value; -} - -// optional float weight_decay = 12; -inline bool SolverParameter::has_weight_decay() const { - return (_has_bits_[0] & 0x00200000u) != 0; -} -inline void SolverParameter::set_has_weight_decay() { - _has_bits_[0] |= 0x00200000u; -} -inline void SolverParameter::clear_has_weight_decay() { - _has_bits_[0] &= ~0x00200000u; -} -inline void SolverParameter::clear_weight_decay() { - weight_decay_ = 0; - clear_has_weight_decay(); -} -inline float SolverParameter::weight_decay() const { - return weight_decay_; -} -inline void SolverParameter::set_weight_decay(float value) { - set_has_weight_decay(); - weight_decay_ = value; -} - -// optional string regularization_type = 29 [default = "L2"]; -inline bool SolverParameter::has_regularization_type() const { - return (_has_bits_[0] & 0x00400000u) != 0; -} -inline void SolverParameter::set_has_regularization_type() { - _has_bits_[0] |= 0x00400000u; -} -inline void SolverParameter::clear_has_regularization_type() { - _has_bits_[0] &= ~0x00400000u; -} -inline void SolverParameter::clear_regularization_type() { - if (regularization_type_ != _default_regularization_type_) { - regularization_type_->assign(*_default_regularization_type_); - } - clear_has_regularization_type(); -} -inline const ::std::string& SolverParameter::regularization_type() const { - return *regularization_type_; -} -inline void SolverParameter::set_regularization_type(const ::std::string& value) { - set_has_regularization_type(); - if (regularization_type_ == _default_regularization_type_) { - regularization_type_ = new ::std::string; - } - regularization_type_->assign(value); -} -inline void SolverParameter::set_regularization_type(const char* value) { - set_has_regularization_type(); - if (regularization_type_ == _default_regularization_type_) { - regularization_type_ = new ::std::string; - } - regularization_type_->assign(value); -} -inline void SolverParameter::set_regularization_type(const char* value, size_t size) { - set_has_regularization_type(); - if (regularization_type_ == _default_regularization_type_) { - regularization_type_ = new ::std::string; - } - regularization_type_->assign(reinterpret_cast(value), size); -} -inline ::std::string* SolverParameter::mutable_regularization_type() { - set_has_regularization_type(); - if (regularization_type_ == _default_regularization_type_) { - regularization_type_ = new ::std::string(*_default_regularization_type_); - } - return regularization_type_; -} -inline ::std::string* SolverParameter::release_regularization_type() { - clear_has_regularization_type(); - if (regularization_type_ == _default_regularization_type_) { - return NULL; - } else { - ::std::string* temp = regularization_type_; - regularization_type_ = const_cast< ::std::string*>(_default_regularization_type_); - return temp; - } -} -inline void SolverParameter::set_allocated_regularization_type(::std::string* regularization_type) { - if (regularization_type_ != _default_regularization_type_) { - delete regularization_type_; - } - if (regularization_type) { - set_has_regularization_type(); - regularization_type_ = regularization_type; - } else { - clear_has_regularization_type(); - regularization_type_ = const_cast< ::std::string*>(_default_regularization_type_); - } -} - -// optional int32 stepsize = 13; -inline bool SolverParameter::has_stepsize() const { - return (_has_bits_[0] & 0x00800000u) != 0; -} -inline void SolverParameter::set_has_stepsize() { - _has_bits_[0] |= 0x00800000u; -} -inline void SolverParameter::clear_has_stepsize() { - _has_bits_[0] &= ~0x00800000u; -} -inline void SolverParameter::clear_stepsize() { - stepsize_ = 0; - clear_has_stepsize(); -} -inline ::google::protobuf::int32 SolverParameter::stepsize() const { - return stepsize_; -} -inline void SolverParameter::set_stepsize(::google::protobuf::int32 value) { - set_has_stepsize(); - stepsize_ = value; -} - -// repeated int32 stepvalue = 34; -inline int SolverParameter::stepvalue_size() const { - return stepvalue_.size(); -} -inline void SolverParameter::clear_stepvalue() { - stepvalue_.Clear(); -} -inline ::google::protobuf::int32 SolverParameter::stepvalue(int index) const { - return stepvalue_.Get(index); -} -inline void SolverParameter::set_stepvalue(int index, ::google::protobuf::int32 value) { - stepvalue_.Set(index, value); -} -inline void SolverParameter::add_stepvalue(::google::protobuf::int32 value) { - stepvalue_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -SolverParameter::stepvalue() const { - return stepvalue_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -SolverParameter::mutable_stepvalue() { - return &stepvalue_; -} - -// optional float clip_gradients = 35 [default = -1]; -inline bool SolverParameter::has_clip_gradients() const { - return (_has_bits_[0] & 0x02000000u) != 0; -} -inline void SolverParameter::set_has_clip_gradients() { - _has_bits_[0] |= 0x02000000u; -} -inline void SolverParameter::clear_has_clip_gradients() { - _has_bits_[0] &= ~0x02000000u; -} -inline void SolverParameter::clear_clip_gradients() { - clip_gradients_ = -1; - clear_has_clip_gradients(); -} -inline float SolverParameter::clip_gradients() const { - return clip_gradients_; -} -inline void SolverParameter::set_clip_gradients(float value) { - set_has_clip_gradients(); - clip_gradients_ = value; -} - -// optional int32 snapshot = 14 [default = 0]; -inline bool SolverParameter::has_snapshot() const { - return (_has_bits_[0] & 0x04000000u) != 0; -} -inline void SolverParameter::set_has_snapshot() { - _has_bits_[0] |= 0x04000000u; -} -inline void SolverParameter::clear_has_snapshot() { - _has_bits_[0] &= ~0x04000000u; -} -inline void SolverParameter::clear_snapshot() { - snapshot_ = 0; - clear_has_snapshot(); -} -inline ::google::protobuf::int32 SolverParameter::snapshot() const { - return snapshot_; -} -inline void SolverParameter::set_snapshot(::google::protobuf::int32 value) { - set_has_snapshot(); - snapshot_ = value; -} - -// optional string snapshot_prefix = 15; -inline bool SolverParameter::has_snapshot_prefix() const { - return (_has_bits_[0] & 0x08000000u) != 0; -} -inline void SolverParameter::set_has_snapshot_prefix() { - _has_bits_[0] |= 0x08000000u; -} -inline void SolverParameter::clear_has_snapshot_prefix() { - _has_bits_[0] &= ~0x08000000u; -} -inline void SolverParameter::clear_snapshot_prefix() { - if (snapshot_prefix_ != &::google::protobuf::internal::kEmptyString) { - snapshot_prefix_->clear(); - } - clear_has_snapshot_prefix(); -} -inline const ::std::string& SolverParameter::snapshot_prefix() const { - return *snapshot_prefix_; -} -inline void SolverParameter::set_snapshot_prefix(const ::std::string& value) { - set_has_snapshot_prefix(); - if (snapshot_prefix_ == &::google::protobuf::internal::kEmptyString) { - snapshot_prefix_ = new ::std::string; - } - snapshot_prefix_->assign(value); -} -inline void SolverParameter::set_snapshot_prefix(const char* value) { - set_has_snapshot_prefix(); - if (snapshot_prefix_ == &::google::protobuf::internal::kEmptyString) { - snapshot_prefix_ = new ::std::string; - } - snapshot_prefix_->assign(value); -} -inline void SolverParameter::set_snapshot_prefix(const char* value, size_t size) { - set_has_snapshot_prefix(); - if (snapshot_prefix_ == &::google::protobuf::internal::kEmptyString) { - snapshot_prefix_ = new ::std::string; - } - snapshot_prefix_->assign(reinterpret_cast(value), size); -} -inline ::std::string* SolverParameter::mutable_snapshot_prefix() { - set_has_snapshot_prefix(); - if (snapshot_prefix_ == &::google::protobuf::internal::kEmptyString) { - snapshot_prefix_ = new ::std::string; - } - return snapshot_prefix_; -} -inline ::std::string* SolverParameter::release_snapshot_prefix() { - clear_has_snapshot_prefix(); - if (snapshot_prefix_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = snapshot_prefix_; - snapshot_prefix_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void SolverParameter::set_allocated_snapshot_prefix(::std::string* snapshot_prefix) { - if (snapshot_prefix_ != &::google::protobuf::internal::kEmptyString) { - delete snapshot_prefix_; - } - if (snapshot_prefix) { - set_has_snapshot_prefix(); - snapshot_prefix_ = snapshot_prefix; - } else { - clear_has_snapshot_prefix(); - snapshot_prefix_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional bool snapshot_diff = 16 [default = false]; -inline bool SolverParameter::has_snapshot_diff() const { - return (_has_bits_[0] & 0x10000000u) != 0; -} -inline void SolverParameter::set_has_snapshot_diff() { - _has_bits_[0] |= 0x10000000u; -} -inline void SolverParameter::clear_has_snapshot_diff() { - _has_bits_[0] &= ~0x10000000u; -} -inline void SolverParameter::clear_snapshot_diff() { - snapshot_diff_ = false; - clear_has_snapshot_diff(); -} -inline bool SolverParameter::snapshot_diff() const { - return snapshot_diff_; -} -inline void SolverParameter::set_snapshot_diff(bool value) { - set_has_snapshot_diff(); - snapshot_diff_ = value; -} - -// optional .caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU]; -inline bool SolverParameter::has_solver_mode() const { - return (_has_bits_[0] & 0x20000000u) != 0; -} -inline void SolverParameter::set_has_solver_mode() { - _has_bits_[0] |= 0x20000000u; -} -inline void SolverParameter::clear_has_solver_mode() { - _has_bits_[0] &= ~0x20000000u; -} -inline void SolverParameter::clear_solver_mode() { - solver_mode_ = 1; - clear_has_solver_mode(); -} -inline ::caffe::SolverParameter_SolverMode SolverParameter::solver_mode() const { - return static_cast< ::caffe::SolverParameter_SolverMode >(solver_mode_); -} -inline void SolverParameter::set_solver_mode(::caffe::SolverParameter_SolverMode value) { - assert(::caffe::SolverParameter_SolverMode_IsValid(value)); - set_has_solver_mode(); - solver_mode_ = value; -} - -// optional int32 device_id = 18 [default = 0]; -inline bool SolverParameter::has_device_id() const { - return (_has_bits_[0] & 0x40000000u) != 0; -} -inline void SolverParameter::set_has_device_id() { - _has_bits_[0] |= 0x40000000u; -} -inline void SolverParameter::clear_has_device_id() { - _has_bits_[0] &= ~0x40000000u; -} -inline void SolverParameter::clear_device_id() { - device_id_ = 0; - clear_has_device_id(); -} -inline ::google::protobuf::int32 SolverParameter::device_id() const { - return device_id_; -} -inline void SolverParameter::set_device_id(::google::protobuf::int32 value) { - set_has_device_id(); - device_id_ = value; -} - -// optional int64 random_seed = 20 [default = -1]; -inline bool SolverParameter::has_random_seed() const { - return (_has_bits_[0] & 0x80000000u) != 0; -} -inline void SolverParameter::set_has_random_seed() { - _has_bits_[0] |= 0x80000000u; -} -inline void SolverParameter::clear_has_random_seed() { - _has_bits_[0] &= ~0x80000000u; -} -inline void SolverParameter::clear_random_seed() { - random_seed_ = GOOGLE_LONGLONG(-1); - clear_has_random_seed(); -} -inline ::google::protobuf::int64 SolverParameter::random_seed() const { - return random_seed_; -} -inline void SolverParameter::set_random_seed(::google::protobuf::int64 value) { - set_has_random_seed(); - random_seed_ = value; -} - -// optional .caffe.SolverParameter.SolverType solver_type = 30 [default = SGD]; -inline bool SolverParameter::has_solver_type() const { - return (_has_bits_[1] & 0x00000001u) != 0; -} -inline void SolverParameter::set_has_solver_type() { - _has_bits_[1] |= 0x00000001u; -} -inline void SolverParameter::clear_has_solver_type() { - _has_bits_[1] &= ~0x00000001u; -} -inline void SolverParameter::clear_solver_type() { - solver_type_ = 0; - clear_has_solver_type(); -} -inline ::caffe::SolverParameter_SolverType SolverParameter::solver_type() const { - return static_cast< ::caffe::SolverParameter_SolverType >(solver_type_); -} -inline void SolverParameter::set_solver_type(::caffe::SolverParameter_SolverType value) { - assert(::caffe::SolverParameter_SolverType_IsValid(value)); - set_has_solver_type(); - solver_type_ = value; -} - -// optional float delta = 31 [default = 1e-08]; -inline bool SolverParameter::has_delta() const { - return (_has_bits_[1] & 0x00000002u) != 0; -} -inline void SolverParameter::set_has_delta() { - _has_bits_[1] |= 0x00000002u; -} -inline void SolverParameter::clear_has_delta() { - _has_bits_[1] &= ~0x00000002u; -} -inline void SolverParameter::clear_delta() { - delta_ = 1e-08f; - clear_has_delta(); -} -inline float SolverParameter::delta() const { - return delta_; -} -inline void SolverParameter::set_delta(float value) { - set_has_delta(); - delta_ = value; -} - -// optional bool debug_info = 23 [default = false]; -inline bool SolverParameter::has_debug_info() const { - return (_has_bits_[1] & 0x00000004u) != 0; -} -inline void SolverParameter::set_has_debug_info() { - _has_bits_[1] |= 0x00000004u; -} -inline void SolverParameter::clear_has_debug_info() { - _has_bits_[1] &= ~0x00000004u; -} -inline void SolverParameter::clear_debug_info() { - debug_info_ = false; - clear_has_debug_info(); -} -inline bool SolverParameter::debug_info() const { - return debug_info_; -} -inline void SolverParameter::set_debug_info(bool value) { - set_has_debug_info(); - debug_info_ = value; -} - -// optional bool snapshot_after_train = 28 [default = true]; -inline bool SolverParameter::has_snapshot_after_train() const { - return (_has_bits_[1] & 0x00000008u) != 0; -} -inline void SolverParameter::set_has_snapshot_after_train() { - _has_bits_[1] |= 0x00000008u; -} -inline void SolverParameter::clear_has_snapshot_after_train() { - _has_bits_[1] &= ~0x00000008u; -} -inline void SolverParameter::clear_snapshot_after_train() { - snapshot_after_train_ = true; - clear_has_snapshot_after_train(); -} -inline bool SolverParameter::snapshot_after_train() const { - return snapshot_after_train_; -} -inline void SolverParameter::set_snapshot_after_train(bool value) { - set_has_snapshot_after_train(); - snapshot_after_train_ = value; -} - -// ------------------------------------------------------------------- - -// SolverState - -// optional int32 iter = 1; -inline bool SolverState::has_iter() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void SolverState::set_has_iter() { - _has_bits_[0] |= 0x00000001u; -} -inline void SolverState::clear_has_iter() { - _has_bits_[0] &= ~0x00000001u; -} -inline void SolverState::clear_iter() { - iter_ = 0; - clear_has_iter(); -} -inline ::google::protobuf::int32 SolverState::iter() const { - return iter_; -} -inline void SolverState::set_iter(::google::protobuf::int32 value) { - set_has_iter(); - iter_ = value; -} - -// optional string learned_net = 2; -inline bool SolverState::has_learned_net() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void SolverState::set_has_learned_net() { - _has_bits_[0] |= 0x00000002u; -} -inline void SolverState::clear_has_learned_net() { - _has_bits_[0] &= ~0x00000002u; -} -inline void SolverState::clear_learned_net() { - if (learned_net_ != &::google::protobuf::internal::kEmptyString) { - learned_net_->clear(); - } - clear_has_learned_net(); -} -inline const ::std::string& SolverState::learned_net() const { - return *learned_net_; -} -inline void SolverState::set_learned_net(const ::std::string& value) { - set_has_learned_net(); - if (learned_net_ == &::google::protobuf::internal::kEmptyString) { - learned_net_ = new ::std::string; - } - learned_net_->assign(value); -} -inline void SolverState::set_learned_net(const char* value) { - set_has_learned_net(); - if (learned_net_ == &::google::protobuf::internal::kEmptyString) { - learned_net_ = new ::std::string; - } - learned_net_->assign(value); -} -inline void SolverState::set_learned_net(const char* value, size_t size) { - set_has_learned_net(); - if (learned_net_ == &::google::protobuf::internal::kEmptyString) { - learned_net_ = new ::std::string; - } - learned_net_->assign(reinterpret_cast(value), size); -} -inline ::std::string* SolverState::mutable_learned_net() { - set_has_learned_net(); - if (learned_net_ == &::google::protobuf::internal::kEmptyString) { - learned_net_ = new ::std::string; - } - return learned_net_; -} -inline ::std::string* SolverState::release_learned_net() { - clear_has_learned_net(); - if (learned_net_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = learned_net_; - learned_net_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void SolverState::set_allocated_learned_net(::std::string* learned_net) { - if (learned_net_ != &::google::protobuf::internal::kEmptyString) { - delete learned_net_; - } - if (learned_net) { - set_has_learned_net(); - learned_net_ = learned_net; - } else { - clear_has_learned_net(); - learned_net_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// repeated .caffe.BlobProto history = 3; -inline int SolverState::history_size() const { - return history_.size(); -} -inline void SolverState::clear_history() { - history_.Clear(); -} -inline const ::caffe::BlobProto& SolverState::history(int index) const { - return history_.Get(index); -} -inline ::caffe::BlobProto* SolverState::mutable_history(int index) { - return history_.Mutable(index); -} -inline ::caffe::BlobProto* SolverState::add_history() { - return history_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >& -SolverState::history() const { - return history_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >* -SolverState::mutable_history() { - return &history_; -} - -// optional int32 current_step = 4 [default = 0]; -inline bool SolverState::has_current_step() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void SolverState::set_has_current_step() { - _has_bits_[0] |= 0x00000008u; -} -inline void SolverState::clear_has_current_step() { - _has_bits_[0] &= ~0x00000008u; -} -inline void SolverState::clear_current_step() { - current_step_ = 0; - clear_has_current_step(); -} -inline ::google::protobuf::int32 SolverState::current_step() const { - return current_step_; -} -inline void SolverState::set_current_step(::google::protobuf::int32 value) { - set_has_current_step(); - current_step_ = value; -} - -// ------------------------------------------------------------------- - -// NetState - -// optional .caffe.Phase phase = 1 [default = TEST]; -inline bool NetState::has_phase() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void NetState::set_has_phase() { - _has_bits_[0] |= 0x00000001u; -} -inline void NetState::clear_has_phase() { - _has_bits_[0] &= ~0x00000001u; -} -inline void NetState::clear_phase() { - phase_ = 1; - clear_has_phase(); -} -inline ::caffe::Phase NetState::phase() const { - return static_cast< ::caffe::Phase >(phase_); -} -inline void NetState::set_phase(::caffe::Phase value) { - assert(::caffe::Phase_IsValid(value)); - set_has_phase(); - phase_ = value; -} - -// optional int32 level = 2 [default = 0]; -inline bool NetState::has_level() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void NetState::set_has_level() { - _has_bits_[0] |= 0x00000002u; -} -inline void NetState::clear_has_level() { - _has_bits_[0] &= ~0x00000002u; -} -inline void NetState::clear_level() { - level_ = 0; - clear_has_level(); -} -inline ::google::protobuf::int32 NetState::level() const { - return level_; -} -inline void NetState::set_level(::google::protobuf::int32 value) { - set_has_level(); - level_ = value; -} - -// repeated string stage = 3; -inline int NetState::stage_size() const { - return stage_.size(); -} -inline void NetState::clear_stage() { - stage_.Clear(); -} -inline const ::std::string& NetState::stage(int index) const { - return stage_.Get(index); -} -inline ::std::string* NetState::mutable_stage(int index) { - return stage_.Mutable(index); -} -inline void NetState::set_stage(int index, const ::std::string& value) { - stage_.Mutable(index)->assign(value); -} -inline void NetState::set_stage(int index, const char* value) { - stage_.Mutable(index)->assign(value); -} -inline void NetState::set_stage(int index, const char* value, size_t size) { - stage_.Mutable(index)->assign( - reinterpret_cast(value), size); -} -inline ::std::string* NetState::add_stage() { - return stage_.Add(); -} -inline void NetState::add_stage(const ::std::string& value) { - stage_.Add()->assign(value); -} -inline void NetState::add_stage(const char* value) { - stage_.Add()->assign(value); -} -inline void NetState::add_stage(const char* value, size_t size) { - stage_.Add()->assign(reinterpret_cast(value), size); -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -NetState::stage() const { - return stage_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -NetState::mutable_stage() { - return &stage_; -} - -// ------------------------------------------------------------------- - -// NetStateRule - -// optional .caffe.Phase phase = 1; -inline bool NetStateRule::has_phase() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void NetStateRule::set_has_phase() { - _has_bits_[0] |= 0x00000001u; -} -inline void NetStateRule::clear_has_phase() { - _has_bits_[0] &= ~0x00000001u; -} -inline void NetStateRule::clear_phase() { - phase_ = 0; - clear_has_phase(); -} -inline ::caffe::Phase NetStateRule::phase() const { - return static_cast< ::caffe::Phase >(phase_); -} -inline void NetStateRule::set_phase(::caffe::Phase value) { - assert(::caffe::Phase_IsValid(value)); - set_has_phase(); - phase_ = value; -} - -// optional int32 min_level = 2; -inline bool NetStateRule::has_min_level() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void NetStateRule::set_has_min_level() { - _has_bits_[0] |= 0x00000002u; -} -inline void NetStateRule::clear_has_min_level() { - _has_bits_[0] &= ~0x00000002u; -} -inline void NetStateRule::clear_min_level() { - min_level_ = 0; - clear_has_min_level(); -} -inline ::google::protobuf::int32 NetStateRule::min_level() const { - return min_level_; -} -inline void NetStateRule::set_min_level(::google::protobuf::int32 value) { - set_has_min_level(); - min_level_ = value; -} - -// optional int32 max_level = 3; -inline bool NetStateRule::has_max_level() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void NetStateRule::set_has_max_level() { - _has_bits_[0] |= 0x00000004u; -} -inline void NetStateRule::clear_has_max_level() { - _has_bits_[0] &= ~0x00000004u; -} -inline void NetStateRule::clear_max_level() { - max_level_ = 0; - clear_has_max_level(); -} -inline ::google::protobuf::int32 NetStateRule::max_level() const { - return max_level_; -} -inline void NetStateRule::set_max_level(::google::protobuf::int32 value) { - set_has_max_level(); - max_level_ = value; -} - -// repeated string stage = 4; -inline int NetStateRule::stage_size() const { - return stage_.size(); -} -inline void NetStateRule::clear_stage() { - stage_.Clear(); -} -inline const ::std::string& NetStateRule::stage(int index) const { - return stage_.Get(index); -} -inline ::std::string* NetStateRule::mutable_stage(int index) { - return stage_.Mutable(index); -} -inline void NetStateRule::set_stage(int index, const ::std::string& value) { - stage_.Mutable(index)->assign(value); -} -inline void NetStateRule::set_stage(int index, const char* value) { - stage_.Mutable(index)->assign(value); -} -inline void NetStateRule::set_stage(int index, const char* value, size_t size) { - stage_.Mutable(index)->assign( - reinterpret_cast(value), size); -} -inline ::std::string* NetStateRule::add_stage() { - return stage_.Add(); -} -inline void NetStateRule::add_stage(const ::std::string& value) { - stage_.Add()->assign(value); -} -inline void NetStateRule::add_stage(const char* value) { - stage_.Add()->assign(value); -} -inline void NetStateRule::add_stage(const char* value, size_t size) { - stage_.Add()->assign(reinterpret_cast(value), size); -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -NetStateRule::stage() const { - return stage_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -NetStateRule::mutable_stage() { - return &stage_; -} - -// repeated string not_stage = 5; -inline int NetStateRule::not_stage_size() const { - return not_stage_.size(); -} -inline void NetStateRule::clear_not_stage() { - not_stage_.Clear(); -} -inline const ::std::string& NetStateRule::not_stage(int index) const { - return not_stage_.Get(index); -} -inline ::std::string* NetStateRule::mutable_not_stage(int index) { - return not_stage_.Mutable(index); -} -inline void NetStateRule::set_not_stage(int index, const ::std::string& value) { - not_stage_.Mutable(index)->assign(value); -} -inline void NetStateRule::set_not_stage(int index, const char* value) { - not_stage_.Mutable(index)->assign(value); -} -inline void NetStateRule::set_not_stage(int index, const char* value, size_t size) { - not_stage_.Mutable(index)->assign( - reinterpret_cast(value), size); -} -inline ::std::string* NetStateRule::add_not_stage() { - return not_stage_.Add(); -} -inline void NetStateRule::add_not_stage(const ::std::string& value) { - not_stage_.Add()->assign(value); -} -inline void NetStateRule::add_not_stage(const char* value) { - not_stage_.Add()->assign(value); -} -inline void NetStateRule::add_not_stage(const char* value, size_t size) { - not_stage_.Add()->assign(reinterpret_cast(value), size); -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -NetStateRule::not_stage() const { - return not_stage_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -NetStateRule::mutable_not_stage() { - return ¬_stage_; -} - -// ------------------------------------------------------------------- - -// ParamSpec - -// optional string name = 1; -inline bool ParamSpec::has_name() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ParamSpec::set_has_name() { - _has_bits_[0] |= 0x00000001u; -} -inline void ParamSpec::clear_has_name() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ParamSpec::clear_name() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - clear_has_name(); -} -inline const ::std::string& ParamSpec::name() const { - return *name_; -} -inline void ParamSpec::set_name(const ::std::string& value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void ParamSpec::set_name(const char* value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void ParamSpec::set_name(const char* value, size_t size) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(reinterpret_cast(value), size); -} -inline ::std::string* ParamSpec::mutable_name() { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - return name_; -} -inline ::std::string* ParamSpec::release_name() { - clear_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = name_; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void ParamSpec::set_allocated_name(::std::string* name) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (name) { - set_has_name(); - name_ = name; - } else { - clear_has_name(); - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional .caffe.ParamSpec.DimCheckMode share_mode = 2; -inline bool ParamSpec::has_share_mode() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ParamSpec::set_has_share_mode() { - _has_bits_[0] |= 0x00000002u; -} -inline void ParamSpec::clear_has_share_mode() { - _has_bits_[0] &= ~0x00000002u; -} -inline void ParamSpec::clear_share_mode() { - share_mode_ = 0; - clear_has_share_mode(); -} -inline ::caffe::ParamSpec_DimCheckMode ParamSpec::share_mode() const { - return static_cast< ::caffe::ParamSpec_DimCheckMode >(share_mode_); -} -inline void ParamSpec::set_share_mode(::caffe::ParamSpec_DimCheckMode value) { - assert(::caffe::ParamSpec_DimCheckMode_IsValid(value)); - set_has_share_mode(); - share_mode_ = value; -} - -// optional float lr_mult = 3 [default = 1]; -inline bool ParamSpec::has_lr_mult() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void ParamSpec::set_has_lr_mult() { - _has_bits_[0] |= 0x00000004u; -} -inline void ParamSpec::clear_has_lr_mult() { - _has_bits_[0] &= ~0x00000004u; -} -inline void ParamSpec::clear_lr_mult() { - lr_mult_ = 1; - clear_has_lr_mult(); -} -inline float ParamSpec::lr_mult() const { - return lr_mult_; -} -inline void ParamSpec::set_lr_mult(float value) { - set_has_lr_mult(); - lr_mult_ = value; -} - -// optional float decay_mult = 4 [default = 1]; -inline bool ParamSpec::has_decay_mult() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void ParamSpec::set_has_decay_mult() { - _has_bits_[0] |= 0x00000008u; -} -inline void ParamSpec::clear_has_decay_mult() { - _has_bits_[0] &= ~0x00000008u; -} -inline void ParamSpec::clear_decay_mult() { - decay_mult_ = 1; - clear_has_decay_mult(); -} -inline float ParamSpec::decay_mult() const { - return decay_mult_; -} -inline void ParamSpec::set_decay_mult(float value) { - set_has_decay_mult(); - decay_mult_ = value; -} - -// ------------------------------------------------------------------- - -// LayerParameter - -// optional string name = 1; -inline bool LayerParameter::has_name() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void LayerParameter::set_has_name() { - _has_bits_[0] |= 0x00000001u; -} -inline void LayerParameter::clear_has_name() { - _has_bits_[0] &= ~0x00000001u; -} -inline void LayerParameter::clear_name() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - clear_has_name(); -} -inline const ::std::string& LayerParameter::name() const { - return *name_; -} -inline void LayerParameter::set_name(const ::std::string& value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void LayerParameter::set_name(const char* value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void LayerParameter::set_name(const char* value, size_t size) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(reinterpret_cast(value), size); -} -inline ::std::string* LayerParameter::mutable_name() { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - return name_; -} -inline ::std::string* LayerParameter::release_name() { - clear_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = name_; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void LayerParameter::set_allocated_name(::std::string* name) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (name) { - set_has_name(); - name_ = name; - } else { - clear_has_name(); - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional string type = 2; -inline bool LayerParameter::has_type() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void LayerParameter::set_has_type() { - _has_bits_[0] |= 0x00000002u; -} -inline void LayerParameter::clear_has_type() { - _has_bits_[0] &= ~0x00000002u; -} -inline void LayerParameter::clear_type() { - if (type_ != &::google::protobuf::internal::kEmptyString) { - type_->clear(); - } - clear_has_type(); -} -inline const ::std::string& LayerParameter::type() const { - return *type_; -} -inline void LayerParameter::set_type(const ::std::string& value) { - set_has_type(); - if (type_ == &::google::protobuf::internal::kEmptyString) { - type_ = new ::std::string; - } - type_->assign(value); -} -inline void LayerParameter::set_type(const char* value) { - set_has_type(); - if (type_ == &::google::protobuf::internal::kEmptyString) { - type_ = new ::std::string; - } - type_->assign(value); -} -inline void LayerParameter::set_type(const char* value, size_t size) { - set_has_type(); - if (type_ == &::google::protobuf::internal::kEmptyString) { - type_ = new ::std::string; - } - type_->assign(reinterpret_cast(value), size); -} -inline ::std::string* LayerParameter::mutable_type() { - set_has_type(); - if (type_ == &::google::protobuf::internal::kEmptyString) { - type_ = new ::std::string; - } - return type_; -} -inline ::std::string* LayerParameter::release_type() { - clear_has_type(); - if (type_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = type_; - type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void LayerParameter::set_allocated_type(::std::string* type) { - if (type_ != &::google::protobuf::internal::kEmptyString) { - delete type_; - } - if (type) { - set_has_type(); - type_ = type; - } else { - clear_has_type(); - type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// repeated string bottom = 3; -inline int LayerParameter::bottom_size() const { - return bottom_.size(); -} -inline void LayerParameter::clear_bottom() { - bottom_.Clear(); -} -inline const ::std::string& LayerParameter::bottom(int index) const { - return bottom_.Get(index); -} -inline ::std::string* LayerParameter::mutable_bottom(int index) { - return bottom_.Mutable(index); -} -inline void LayerParameter::set_bottom(int index, const ::std::string& value) { - bottom_.Mutable(index)->assign(value); -} -inline void LayerParameter::set_bottom(int index, const char* value) { - bottom_.Mutable(index)->assign(value); -} -inline void LayerParameter::set_bottom(int index, const char* value, size_t size) { - bottom_.Mutable(index)->assign( - reinterpret_cast(value), size); -} -inline ::std::string* LayerParameter::add_bottom() { - return bottom_.Add(); -} -inline void LayerParameter::add_bottom(const ::std::string& value) { - bottom_.Add()->assign(value); -} -inline void LayerParameter::add_bottom(const char* value) { - bottom_.Add()->assign(value); -} -inline void LayerParameter::add_bottom(const char* value, size_t size) { - bottom_.Add()->assign(reinterpret_cast(value), size); -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -LayerParameter::bottom() const { - return bottom_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -LayerParameter::mutable_bottom() { - return &bottom_; -} - -// repeated string top = 4; -inline int LayerParameter::top_size() const { - return top_.size(); -} -inline void LayerParameter::clear_top() { - top_.Clear(); -} -inline const ::std::string& LayerParameter::top(int index) const { - return top_.Get(index); -} -inline ::std::string* LayerParameter::mutable_top(int index) { - return top_.Mutable(index); -} -inline void LayerParameter::set_top(int index, const ::std::string& value) { - top_.Mutable(index)->assign(value); -} -inline void LayerParameter::set_top(int index, const char* value) { - top_.Mutable(index)->assign(value); -} -inline void LayerParameter::set_top(int index, const char* value, size_t size) { - top_.Mutable(index)->assign( - reinterpret_cast(value), size); -} -inline ::std::string* LayerParameter::add_top() { - return top_.Add(); -} -inline void LayerParameter::add_top(const ::std::string& value) { - top_.Add()->assign(value); -} -inline void LayerParameter::add_top(const char* value) { - top_.Add()->assign(value); -} -inline void LayerParameter::add_top(const char* value, size_t size) { - top_.Add()->assign(reinterpret_cast(value), size); -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -LayerParameter::top() const { - return top_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -LayerParameter::mutable_top() { - return &top_; -} - -// optional .caffe.Phase phase = 10; -inline bool LayerParameter::has_phase() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void LayerParameter::set_has_phase() { - _has_bits_[0] |= 0x00000010u; -} -inline void LayerParameter::clear_has_phase() { - _has_bits_[0] &= ~0x00000010u; -} -inline void LayerParameter::clear_phase() { - phase_ = 0; - clear_has_phase(); -} -inline ::caffe::Phase LayerParameter::phase() const { - return static_cast< ::caffe::Phase >(phase_); -} -inline void LayerParameter::set_phase(::caffe::Phase value) { - assert(::caffe::Phase_IsValid(value)); - set_has_phase(); - phase_ = value; -} - -// repeated float loss_weight = 5; -inline int LayerParameter::loss_weight_size() const { - return loss_weight_.size(); -} -inline void LayerParameter::clear_loss_weight() { - loss_weight_.Clear(); -} -inline float LayerParameter::loss_weight(int index) const { - return loss_weight_.Get(index); -} -inline void LayerParameter::set_loss_weight(int index, float value) { - loss_weight_.Set(index, value); -} -inline void LayerParameter::add_loss_weight(float value) { - loss_weight_.Add(value); -} -inline const ::google::protobuf::RepeatedField< float >& -LayerParameter::loss_weight() const { - return loss_weight_; -} -inline ::google::protobuf::RepeatedField< float >* -LayerParameter::mutable_loss_weight() { - return &loss_weight_; -} - -// repeated .caffe.ParamSpec param = 6; -inline int LayerParameter::param_size() const { - return param_.size(); -} -inline void LayerParameter::clear_param() { - param_.Clear(); -} -inline const ::caffe::ParamSpec& LayerParameter::param(int index) const { - return param_.Get(index); -} -inline ::caffe::ParamSpec* LayerParameter::mutable_param(int index) { - return param_.Mutable(index); -} -inline ::caffe::ParamSpec* LayerParameter::add_param() { - return param_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::ParamSpec >& -LayerParameter::param() const { - return param_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::ParamSpec >* -LayerParameter::mutable_param() { - return ¶m_; -} - -// repeated .caffe.BlobProto blobs = 7; -inline int LayerParameter::blobs_size() const { - return blobs_.size(); -} -inline void LayerParameter::clear_blobs() { - blobs_.Clear(); -} -inline const ::caffe::BlobProto& LayerParameter::blobs(int index) const { - return blobs_.Get(index); -} -inline ::caffe::BlobProto* LayerParameter::mutable_blobs(int index) { - return blobs_.Mutable(index); -} -inline ::caffe::BlobProto* LayerParameter::add_blobs() { - return blobs_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >& -LayerParameter::blobs() const { - return blobs_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >* -LayerParameter::mutable_blobs() { - return &blobs_; -} - -// repeated bool propagate_down = 11; -inline int LayerParameter::propagate_down_size() const { - return propagate_down_.size(); -} -inline void LayerParameter::clear_propagate_down() { - propagate_down_.Clear(); -} -inline bool LayerParameter::propagate_down(int index) const { - return propagate_down_.Get(index); -} -inline void LayerParameter::set_propagate_down(int index, bool value) { - propagate_down_.Set(index, value); -} -inline void LayerParameter::add_propagate_down(bool value) { - propagate_down_.Add(value); -} -inline const ::google::protobuf::RepeatedField< bool >& -LayerParameter::propagate_down() const { - return propagate_down_; -} -inline ::google::protobuf::RepeatedField< bool >* -LayerParameter::mutable_propagate_down() { - return &propagate_down_; -} - -// repeated .caffe.NetStateRule include = 8; -inline int LayerParameter::include_size() const { - return include_.size(); -} -inline void LayerParameter::clear_include() { - include_.Clear(); -} -inline const ::caffe::NetStateRule& LayerParameter::include(int index) const { - return include_.Get(index); -} -inline ::caffe::NetStateRule* LayerParameter::mutable_include(int index) { - return include_.Mutable(index); -} -inline ::caffe::NetStateRule* LayerParameter::add_include() { - return include_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >& -LayerParameter::include() const { - return include_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >* -LayerParameter::mutable_include() { - return &include_; -} - -// repeated .caffe.NetStateRule exclude = 9; -inline int LayerParameter::exclude_size() const { - return exclude_.size(); -} -inline void LayerParameter::clear_exclude() { - exclude_.Clear(); -} -inline const ::caffe::NetStateRule& LayerParameter::exclude(int index) const { - return exclude_.Get(index); -} -inline ::caffe::NetStateRule* LayerParameter::mutable_exclude(int index) { - return exclude_.Mutable(index); -} -inline ::caffe::NetStateRule* LayerParameter::add_exclude() { - return exclude_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >& -LayerParameter::exclude() const { - return exclude_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >* -LayerParameter::mutable_exclude() { - return &exclude_; -} - -// optional .caffe.TransformationParameter transform_param = 100; -inline bool LayerParameter::has_transform_param() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -inline void LayerParameter::set_has_transform_param() { - _has_bits_[0] |= 0x00000800u; -} -inline void LayerParameter::clear_has_transform_param() { - _has_bits_[0] &= ~0x00000800u; -} -inline void LayerParameter::clear_transform_param() { - if (transform_param_ != NULL) transform_param_->::caffe::TransformationParameter::Clear(); - clear_has_transform_param(); -} -inline const ::caffe::TransformationParameter& LayerParameter::transform_param() const { - return transform_param_ != NULL ? *transform_param_ : *default_instance_->transform_param_; -} -inline ::caffe::TransformationParameter* LayerParameter::mutable_transform_param() { - set_has_transform_param(); - if (transform_param_ == NULL) transform_param_ = new ::caffe::TransformationParameter; - return transform_param_; -} -inline ::caffe::TransformationParameter* LayerParameter::release_transform_param() { - clear_has_transform_param(); - ::caffe::TransformationParameter* temp = transform_param_; - transform_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_transform_param(::caffe::TransformationParameter* transform_param) { - delete transform_param_; - transform_param_ = transform_param; - if (transform_param) { - set_has_transform_param(); - } else { - clear_has_transform_param(); - } -} - -// optional .caffe.LossParameter loss_param = 101; -inline bool LayerParameter::has_loss_param() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -inline void LayerParameter::set_has_loss_param() { - _has_bits_[0] |= 0x00001000u; -} -inline void LayerParameter::clear_has_loss_param() { - _has_bits_[0] &= ~0x00001000u; -} -inline void LayerParameter::clear_loss_param() { - if (loss_param_ != NULL) loss_param_->::caffe::LossParameter::Clear(); - clear_has_loss_param(); -} -inline const ::caffe::LossParameter& LayerParameter::loss_param() const { - return loss_param_ != NULL ? *loss_param_ : *default_instance_->loss_param_; -} -inline ::caffe::LossParameter* LayerParameter::mutable_loss_param() { - set_has_loss_param(); - if (loss_param_ == NULL) loss_param_ = new ::caffe::LossParameter; - return loss_param_; -} -inline ::caffe::LossParameter* LayerParameter::release_loss_param() { - clear_has_loss_param(); - ::caffe::LossParameter* temp = loss_param_; - loss_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_loss_param(::caffe::LossParameter* loss_param) { - delete loss_param_; - loss_param_ = loss_param; - if (loss_param) { - set_has_loss_param(); - } else { - clear_has_loss_param(); - } -} - -// optional .caffe.AccuracyParameter accuracy_param = 102; -inline bool LayerParameter::has_accuracy_param() const { - return (_has_bits_[0] & 0x00002000u) != 0; -} -inline void LayerParameter::set_has_accuracy_param() { - _has_bits_[0] |= 0x00002000u; -} -inline void LayerParameter::clear_has_accuracy_param() { - _has_bits_[0] &= ~0x00002000u; -} -inline void LayerParameter::clear_accuracy_param() { - if (accuracy_param_ != NULL) accuracy_param_->::caffe::AccuracyParameter::Clear(); - clear_has_accuracy_param(); -} -inline const ::caffe::AccuracyParameter& LayerParameter::accuracy_param() const { - return accuracy_param_ != NULL ? *accuracy_param_ : *default_instance_->accuracy_param_; -} -inline ::caffe::AccuracyParameter* LayerParameter::mutable_accuracy_param() { - set_has_accuracy_param(); - if (accuracy_param_ == NULL) accuracy_param_ = new ::caffe::AccuracyParameter; - return accuracy_param_; -} -inline ::caffe::AccuracyParameter* LayerParameter::release_accuracy_param() { - clear_has_accuracy_param(); - ::caffe::AccuracyParameter* temp = accuracy_param_; - accuracy_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_accuracy_param(::caffe::AccuracyParameter* accuracy_param) { - delete accuracy_param_; - accuracy_param_ = accuracy_param; - if (accuracy_param) { - set_has_accuracy_param(); - } else { - clear_has_accuracy_param(); - } -} - -// optional .caffe.ArgMaxParameter argmax_param = 103; -inline bool LayerParameter::has_argmax_param() const { - return (_has_bits_[0] & 0x00004000u) != 0; -} -inline void LayerParameter::set_has_argmax_param() { - _has_bits_[0] |= 0x00004000u; -} -inline void LayerParameter::clear_has_argmax_param() { - _has_bits_[0] &= ~0x00004000u; -} -inline void LayerParameter::clear_argmax_param() { - if (argmax_param_ != NULL) argmax_param_->::caffe::ArgMaxParameter::Clear(); - clear_has_argmax_param(); -} -inline const ::caffe::ArgMaxParameter& LayerParameter::argmax_param() const { - return argmax_param_ != NULL ? *argmax_param_ : *default_instance_->argmax_param_; -} -inline ::caffe::ArgMaxParameter* LayerParameter::mutable_argmax_param() { - set_has_argmax_param(); - if (argmax_param_ == NULL) argmax_param_ = new ::caffe::ArgMaxParameter; - return argmax_param_; -} -inline ::caffe::ArgMaxParameter* LayerParameter::release_argmax_param() { - clear_has_argmax_param(); - ::caffe::ArgMaxParameter* temp = argmax_param_; - argmax_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_argmax_param(::caffe::ArgMaxParameter* argmax_param) { - delete argmax_param_; - argmax_param_ = argmax_param; - if (argmax_param) { - set_has_argmax_param(); - } else { - clear_has_argmax_param(); - } -} - -// optional .caffe.ConcatParameter concat_param = 104; -inline bool LayerParameter::has_concat_param() const { - return (_has_bits_[0] & 0x00008000u) != 0; -} -inline void LayerParameter::set_has_concat_param() { - _has_bits_[0] |= 0x00008000u; -} -inline void LayerParameter::clear_has_concat_param() { - _has_bits_[0] &= ~0x00008000u; -} -inline void LayerParameter::clear_concat_param() { - if (concat_param_ != NULL) concat_param_->::caffe::ConcatParameter::Clear(); - clear_has_concat_param(); -} -inline const ::caffe::ConcatParameter& LayerParameter::concat_param() const { - return concat_param_ != NULL ? *concat_param_ : *default_instance_->concat_param_; -} -inline ::caffe::ConcatParameter* LayerParameter::mutable_concat_param() { - set_has_concat_param(); - if (concat_param_ == NULL) concat_param_ = new ::caffe::ConcatParameter; - return concat_param_; -} -inline ::caffe::ConcatParameter* LayerParameter::release_concat_param() { - clear_has_concat_param(); - ::caffe::ConcatParameter* temp = concat_param_; - concat_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_concat_param(::caffe::ConcatParameter* concat_param) { - delete concat_param_; - concat_param_ = concat_param; - if (concat_param) { - set_has_concat_param(); - } else { - clear_has_concat_param(); - } -} - -// optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105; -inline bool LayerParameter::has_contrastive_loss_param() const { - return (_has_bits_[0] & 0x00010000u) != 0; -} -inline void LayerParameter::set_has_contrastive_loss_param() { - _has_bits_[0] |= 0x00010000u; -} -inline void LayerParameter::clear_has_contrastive_loss_param() { - _has_bits_[0] &= ~0x00010000u; -} -inline void LayerParameter::clear_contrastive_loss_param() { - if (contrastive_loss_param_ != NULL) contrastive_loss_param_->::caffe::ContrastiveLossParameter::Clear(); - clear_has_contrastive_loss_param(); -} -inline const ::caffe::ContrastiveLossParameter& LayerParameter::contrastive_loss_param() const { - return contrastive_loss_param_ != NULL ? *contrastive_loss_param_ : *default_instance_->contrastive_loss_param_; -} -inline ::caffe::ContrastiveLossParameter* LayerParameter::mutable_contrastive_loss_param() { - set_has_contrastive_loss_param(); - if (contrastive_loss_param_ == NULL) contrastive_loss_param_ = new ::caffe::ContrastiveLossParameter; - return contrastive_loss_param_; -} -inline ::caffe::ContrastiveLossParameter* LayerParameter::release_contrastive_loss_param() { - clear_has_contrastive_loss_param(); - ::caffe::ContrastiveLossParameter* temp = contrastive_loss_param_; - contrastive_loss_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_contrastive_loss_param(::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(); - } -} - -// optional .caffe.ConvolutionParameter convolution_param = 106; -inline bool LayerParameter::has_convolution_param() const { - return (_has_bits_[0] & 0x00020000u) != 0; -} -inline void LayerParameter::set_has_convolution_param() { - _has_bits_[0] |= 0x00020000u; -} -inline void LayerParameter::clear_has_convolution_param() { - _has_bits_[0] &= ~0x00020000u; -} -inline void LayerParameter::clear_convolution_param() { - if (convolution_param_ != NULL) convolution_param_->::caffe::ConvolutionParameter::Clear(); - clear_has_convolution_param(); -} -inline const ::caffe::ConvolutionParameter& LayerParameter::convolution_param() const { - return convolution_param_ != NULL ? *convolution_param_ : *default_instance_->convolution_param_; -} -inline ::caffe::ConvolutionParameter* LayerParameter::mutable_convolution_param() { - set_has_convolution_param(); - if (convolution_param_ == NULL) convolution_param_ = new ::caffe::ConvolutionParameter; - return convolution_param_; -} -inline ::caffe::ConvolutionParameter* LayerParameter::release_convolution_param() { - clear_has_convolution_param(); - ::caffe::ConvolutionParameter* temp = convolution_param_; - convolution_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_convolution_param(::caffe::ConvolutionParameter* convolution_param) { - delete convolution_param_; - convolution_param_ = convolution_param; - if (convolution_param) { - set_has_convolution_param(); - } else { - clear_has_convolution_param(); - } -} - -// optional .caffe.DataParameter data_param = 107; -inline bool LayerParameter::has_data_param() const { - return (_has_bits_[0] & 0x00040000u) != 0; -} -inline void LayerParameter::set_has_data_param() { - _has_bits_[0] |= 0x00040000u; -} -inline void LayerParameter::clear_has_data_param() { - _has_bits_[0] &= ~0x00040000u; -} -inline void LayerParameter::clear_data_param() { - if (data_param_ != NULL) data_param_->::caffe::DataParameter::Clear(); - clear_has_data_param(); -} -inline const ::caffe::DataParameter& LayerParameter::data_param() const { - return data_param_ != NULL ? *data_param_ : *default_instance_->data_param_; -} -inline ::caffe::DataParameter* LayerParameter::mutable_data_param() { - set_has_data_param(); - if (data_param_ == NULL) data_param_ = new ::caffe::DataParameter; - return data_param_; -} -inline ::caffe::DataParameter* LayerParameter::release_data_param() { - clear_has_data_param(); - ::caffe::DataParameter* temp = data_param_; - data_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_data_param(::caffe::DataParameter* data_param) { - delete data_param_; - data_param_ = data_param; - if (data_param) { - set_has_data_param(); - } else { - clear_has_data_param(); - } -} - -// optional .caffe.DropoutParameter dropout_param = 108; -inline bool LayerParameter::has_dropout_param() const { - return (_has_bits_[0] & 0x00080000u) != 0; -} -inline void LayerParameter::set_has_dropout_param() { - _has_bits_[0] |= 0x00080000u; -} -inline void LayerParameter::clear_has_dropout_param() { - _has_bits_[0] &= ~0x00080000u; -} -inline void LayerParameter::clear_dropout_param() { - if (dropout_param_ != NULL) dropout_param_->::caffe::DropoutParameter::Clear(); - clear_has_dropout_param(); -} -inline const ::caffe::DropoutParameter& LayerParameter::dropout_param() const { - return dropout_param_ != NULL ? *dropout_param_ : *default_instance_->dropout_param_; -} -inline ::caffe::DropoutParameter* LayerParameter::mutable_dropout_param() { - set_has_dropout_param(); - if (dropout_param_ == NULL) dropout_param_ = new ::caffe::DropoutParameter; - return dropout_param_; -} -inline ::caffe::DropoutParameter* LayerParameter::release_dropout_param() { - clear_has_dropout_param(); - ::caffe::DropoutParameter* temp = dropout_param_; - dropout_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_dropout_param(::caffe::DropoutParameter* dropout_param) { - delete dropout_param_; - dropout_param_ = dropout_param; - if (dropout_param) { - set_has_dropout_param(); - } else { - clear_has_dropout_param(); - } -} - -// optional .caffe.DummyDataParameter dummy_data_param = 109; -inline bool LayerParameter::has_dummy_data_param() const { - return (_has_bits_[0] & 0x00100000u) != 0; -} -inline void LayerParameter::set_has_dummy_data_param() { - _has_bits_[0] |= 0x00100000u; -} -inline void LayerParameter::clear_has_dummy_data_param() { - _has_bits_[0] &= ~0x00100000u; -} -inline void LayerParameter::clear_dummy_data_param() { - if (dummy_data_param_ != NULL) dummy_data_param_->::caffe::DummyDataParameter::Clear(); - clear_has_dummy_data_param(); -} -inline const ::caffe::DummyDataParameter& LayerParameter::dummy_data_param() const { - return dummy_data_param_ != NULL ? *dummy_data_param_ : *default_instance_->dummy_data_param_; -} -inline ::caffe::DummyDataParameter* LayerParameter::mutable_dummy_data_param() { - set_has_dummy_data_param(); - if (dummy_data_param_ == NULL) dummy_data_param_ = new ::caffe::DummyDataParameter; - return dummy_data_param_; -} -inline ::caffe::DummyDataParameter* LayerParameter::release_dummy_data_param() { - clear_has_dummy_data_param(); - ::caffe::DummyDataParameter* temp = dummy_data_param_; - dummy_data_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_dummy_data_param(::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(); - } -} - -// optional .caffe.EltwiseParameter eltwise_param = 110; -inline bool LayerParameter::has_eltwise_param() const { - return (_has_bits_[0] & 0x00200000u) != 0; -} -inline void LayerParameter::set_has_eltwise_param() { - _has_bits_[0] |= 0x00200000u; -} -inline void LayerParameter::clear_has_eltwise_param() { - _has_bits_[0] &= ~0x00200000u; -} -inline void LayerParameter::clear_eltwise_param() { - if (eltwise_param_ != NULL) eltwise_param_->::caffe::EltwiseParameter::Clear(); - clear_has_eltwise_param(); -} -inline const ::caffe::EltwiseParameter& LayerParameter::eltwise_param() const { - return eltwise_param_ != NULL ? *eltwise_param_ : *default_instance_->eltwise_param_; -} -inline ::caffe::EltwiseParameter* LayerParameter::mutable_eltwise_param() { - set_has_eltwise_param(); - if (eltwise_param_ == NULL) eltwise_param_ = new ::caffe::EltwiseParameter; - return eltwise_param_; -} -inline ::caffe::EltwiseParameter* LayerParameter::release_eltwise_param() { - clear_has_eltwise_param(); - ::caffe::EltwiseParameter* temp = eltwise_param_; - eltwise_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_eltwise_param(::caffe::EltwiseParameter* eltwise_param) { - delete eltwise_param_; - eltwise_param_ = eltwise_param; - if (eltwise_param) { - set_has_eltwise_param(); - } else { - clear_has_eltwise_param(); - } -} - -// optional .caffe.ExpParameter exp_param = 111; -inline bool LayerParameter::has_exp_param() const { - return (_has_bits_[0] & 0x00400000u) != 0; -} -inline void LayerParameter::set_has_exp_param() { - _has_bits_[0] |= 0x00400000u; -} -inline void LayerParameter::clear_has_exp_param() { - _has_bits_[0] &= ~0x00400000u; -} -inline void LayerParameter::clear_exp_param() { - if (exp_param_ != NULL) exp_param_->::caffe::ExpParameter::Clear(); - clear_has_exp_param(); -} -inline const ::caffe::ExpParameter& LayerParameter::exp_param() const { - return exp_param_ != NULL ? *exp_param_ : *default_instance_->exp_param_; -} -inline ::caffe::ExpParameter* LayerParameter::mutable_exp_param() { - set_has_exp_param(); - if (exp_param_ == NULL) exp_param_ = new ::caffe::ExpParameter; - return exp_param_; -} -inline ::caffe::ExpParameter* LayerParameter::release_exp_param() { - clear_has_exp_param(); - ::caffe::ExpParameter* temp = exp_param_; - exp_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_exp_param(::caffe::ExpParameter* exp_param) { - delete exp_param_; - exp_param_ = exp_param; - if (exp_param) { - set_has_exp_param(); - } else { - clear_has_exp_param(); - } -} - -// optional .caffe.FlattenParameter flatten_param = 135; -inline bool LayerParameter::has_flatten_param() const { - return (_has_bits_[0] & 0x00800000u) != 0; -} -inline void LayerParameter::set_has_flatten_param() { - _has_bits_[0] |= 0x00800000u; -} -inline void LayerParameter::clear_has_flatten_param() { - _has_bits_[0] &= ~0x00800000u; -} -inline void LayerParameter::clear_flatten_param() { - if (flatten_param_ != NULL) flatten_param_->::caffe::FlattenParameter::Clear(); - clear_has_flatten_param(); -} -inline const ::caffe::FlattenParameter& LayerParameter::flatten_param() const { - return flatten_param_ != NULL ? *flatten_param_ : *default_instance_->flatten_param_; -} -inline ::caffe::FlattenParameter* LayerParameter::mutable_flatten_param() { - set_has_flatten_param(); - if (flatten_param_ == NULL) flatten_param_ = new ::caffe::FlattenParameter; - return flatten_param_; -} -inline ::caffe::FlattenParameter* LayerParameter::release_flatten_param() { - clear_has_flatten_param(); - ::caffe::FlattenParameter* temp = flatten_param_; - flatten_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_flatten_param(::caffe::FlattenParameter* flatten_param) { - delete flatten_param_; - flatten_param_ = flatten_param; - if (flatten_param) { - set_has_flatten_param(); - } else { - clear_has_flatten_param(); - } -} - -// optional .caffe.HDF5DataParameter hdf5_data_param = 112; -inline bool LayerParameter::has_hdf5_data_param() const { - return (_has_bits_[0] & 0x01000000u) != 0; -} -inline void LayerParameter::set_has_hdf5_data_param() { - _has_bits_[0] |= 0x01000000u; -} -inline void LayerParameter::clear_has_hdf5_data_param() { - _has_bits_[0] &= ~0x01000000u; -} -inline void LayerParameter::clear_hdf5_data_param() { - if (hdf5_data_param_ != NULL) hdf5_data_param_->::caffe::HDF5DataParameter::Clear(); - clear_has_hdf5_data_param(); -} -inline const ::caffe::HDF5DataParameter& LayerParameter::hdf5_data_param() const { - return hdf5_data_param_ != NULL ? *hdf5_data_param_ : *default_instance_->hdf5_data_param_; -} -inline ::caffe::HDF5DataParameter* LayerParameter::mutable_hdf5_data_param() { - set_has_hdf5_data_param(); - if (hdf5_data_param_ == NULL) hdf5_data_param_ = new ::caffe::HDF5DataParameter; - return hdf5_data_param_; -} -inline ::caffe::HDF5DataParameter* LayerParameter::release_hdf5_data_param() { - clear_has_hdf5_data_param(); - ::caffe::HDF5DataParameter* temp = hdf5_data_param_; - hdf5_data_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_hdf5_data_param(::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(); - } -} - -// optional .caffe.HDF5OutputParameter hdf5_output_param = 113; -inline bool LayerParameter::has_hdf5_output_param() const { - return (_has_bits_[0] & 0x02000000u) != 0; -} -inline void LayerParameter::set_has_hdf5_output_param() { - _has_bits_[0] |= 0x02000000u; -} -inline void LayerParameter::clear_has_hdf5_output_param() { - _has_bits_[0] &= ~0x02000000u; -} -inline void LayerParameter::clear_hdf5_output_param() { - if (hdf5_output_param_ != NULL) hdf5_output_param_->::caffe::HDF5OutputParameter::Clear(); - clear_has_hdf5_output_param(); -} -inline const ::caffe::HDF5OutputParameter& LayerParameter::hdf5_output_param() const { - return hdf5_output_param_ != NULL ? *hdf5_output_param_ : *default_instance_->hdf5_output_param_; -} -inline ::caffe::HDF5OutputParameter* LayerParameter::mutable_hdf5_output_param() { - set_has_hdf5_output_param(); - if (hdf5_output_param_ == NULL) hdf5_output_param_ = new ::caffe::HDF5OutputParameter; - return hdf5_output_param_; -} -inline ::caffe::HDF5OutputParameter* LayerParameter::release_hdf5_output_param() { - clear_has_hdf5_output_param(); - ::caffe::HDF5OutputParameter* temp = hdf5_output_param_; - hdf5_output_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_hdf5_output_param(::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(); - } -} - -// optional .caffe.HingeLossParameter hinge_loss_param = 114; -inline bool LayerParameter::has_hinge_loss_param() const { - return (_has_bits_[0] & 0x04000000u) != 0; -} -inline void LayerParameter::set_has_hinge_loss_param() { - _has_bits_[0] |= 0x04000000u; -} -inline void LayerParameter::clear_has_hinge_loss_param() { - _has_bits_[0] &= ~0x04000000u; -} -inline void LayerParameter::clear_hinge_loss_param() { - if (hinge_loss_param_ != NULL) hinge_loss_param_->::caffe::HingeLossParameter::Clear(); - clear_has_hinge_loss_param(); -} -inline const ::caffe::HingeLossParameter& LayerParameter::hinge_loss_param() const { - return hinge_loss_param_ != NULL ? *hinge_loss_param_ : *default_instance_->hinge_loss_param_; -} -inline ::caffe::HingeLossParameter* LayerParameter::mutable_hinge_loss_param() { - set_has_hinge_loss_param(); - if (hinge_loss_param_ == NULL) hinge_loss_param_ = new ::caffe::HingeLossParameter; - return hinge_loss_param_; -} -inline ::caffe::HingeLossParameter* LayerParameter::release_hinge_loss_param() { - clear_has_hinge_loss_param(); - ::caffe::HingeLossParameter* temp = hinge_loss_param_; - hinge_loss_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_hinge_loss_param(::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(); - } -} - -// optional .caffe.ImageDataParameter image_data_param = 115; -inline bool LayerParameter::has_image_data_param() const { - return (_has_bits_[0] & 0x08000000u) != 0; -} -inline void LayerParameter::set_has_image_data_param() { - _has_bits_[0] |= 0x08000000u; -} -inline void LayerParameter::clear_has_image_data_param() { - _has_bits_[0] &= ~0x08000000u; -} -inline void LayerParameter::clear_image_data_param() { - if (image_data_param_ != NULL) image_data_param_->::caffe::ImageDataParameter::Clear(); - clear_has_image_data_param(); -} -inline const ::caffe::ImageDataParameter& LayerParameter::image_data_param() const { - return image_data_param_ != NULL ? *image_data_param_ : *default_instance_->image_data_param_; -} -inline ::caffe::ImageDataParameter* LayerParameter::mutable_image_data_param() { - set_has_image_data_param(); - if (image_data_param_ == NULL) image_data_param_ = new ::caffe::ImageDataParameter; - return image_data_param_; -} -inline ::caffe::ImageDataParameter* LayerParameter::release_image_data_param() { - clear_has_image_data_param(); - ::caffe::ImageDataParameter* temp = image_data_param_; - image_data_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_image_data_param(::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(); - } -} - -// optional .caffe.InfogainLossParameter infogain_loss_param = 116; -inline bool LayerParameter::has_infogain_loss_param() const { - return (_has_bits_[0] & 0x10000000u) != 0; -} -inline void LayerParameter::set_has_infogain_loss_param() { - _has_bits_[0] |= 0x10000000u; -} -inline void LayerParameter::clear_has_infogain_loss_param() { - _has_bits_[0] &= ~0x10000000u; -} -inline void LayerParameter::clear_infogain_loss_param() { - if (infogain_loss_param_ != NULL) infogain_loss_param_->::caffe::InfogainLossParameter::Clear(); - clear_has_infogain_loss_param(); -} -inline const ::caffe::InfogainLossParameter& LayerParameter::infogain_loss_param() const { - return infogain_loss_param_ != NULL ? *infogain_loss_param_ : *default_instance_->infogain_loss_param_; -} -inline ::caffe::InfogainLossParameter* LayerParameter::mutable_infogain_loss_param() { - set_has_infogain_loss_param(); - if (infogain_loss_param_ == NULL) infogain_loss_param_ = new ::caffe::InfogainLossParameter; - return infogain_loss_param_; -} -inline ::caffe::InfogainLossParameter* LayerParameter::release_infogain_loss_param() { - clear_has_infogain_loss_param(); - ::caffe::InfogainLossParameter* temp = infogain_loss_param_; - infogain_loss_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_infogain_loss_param(::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(); - } -} - -// optional .caffe.InnerProductParameter inner_product_param = 117; -inline bool LayerParameter::has_inner_product_param() const { - return (_has_bits_[0] & 0x20000000u) != 0; -} -inline void LayerParameter::set_has_inner_product_param() { - _has_bits_[0] |= 0x20000000u; -} -inline void LayerParameter::clear_has_inner_product_param() { - _has_bits_[0] &= ~0x20000000u; -} -inline void LayerParameter::clear_inner_product_param() { - if (inner_product_param_ != NULL) inner_product_param_->::caffe::InnerProductParameter::Clear(); - clear_has_inner_product_param(); -} -inline const ::caffe::InnerProductParameter& LayerParameter::inner_product_param() const { - return inner_product_param_ != NULL ? *inner_product_param_ : *default_instance_->inner_product_param_; -} -inline ::caffe::InnerProductParameter* LayerParameter::mutable_inner_product_param() { - set_has_inner_product_param(); - if (inner_product_param_ == NULL) inner_product_param_ = new ::caffe::InnerProductParameter; - return inner_product_param_; -} -inline ::caffe::InnerProductParameter* LayerParameter::release_inner_product_param() { - clear_has_inner_product_param(); - ::caffe::InnerProductParameter* temp = inner_product_param_; - inner_product_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_inner_product_param(::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(); - } -} - -// optional .caffe.LogParameter log_param = 134; -inline bool LayerParameter::has_log_param() const { - return (_has_bits_[0] & 0x40000000u) != 0; -} -inline void LayerParameter::set_has_log_param() { - _has_bits_[0] |= 0x40000000u; -} -inline void LayerParameter::clear_has_log_param() { - _has_bits_[0] &= ~0x40000000u; -} -inline void LayerParameter::clear_log_param() { - if (log_param_ != NULL) log_param_->::caffe::LogParameter::Clear(); - clear_has_log_param(); -} -inline const ::caffe::LogParameter& LayerParameter::log_param() const { - return log_param_ != NULL ? *log_param_ : *default_instance_->log_param_; -} -inline ::caffe::LogParameter* LayerParameter::mutable_log_param() { - set_has_log_param(); - if (log_param_ == NULL) log_param_ = new ::caffe::LogParameter; - return log_param_; -} -inline ::caffe::LogParameter* LayerParameter::release_log_param() { - clear_has_log_param(); - ::caffe::LogParameter* temp = log_param_; - log_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_log_param(::caffe::LogParameter* log_param) { - delete log_param_; - log_param_ = log_param; - if (log_param) { - set_has_log_param(); - } else { - clear_has_log_param(); - } -} - -// optional .caffe.LRNParameter lrn_param = 118; -inline bool LayerParameter::has_lrn_param() const { - return (_has_bits_[0] & 0x80000000u) != 0; -} -inline void LayerParameter::set_has_lrn_param() { - _has_bits_[0] |= 0x80000000u; -} -inline void LayerParameter::clear_has_lrn_param() { - _has_bits_[0] &= ~0x80000000u; -} -inline void LayerParameter::clear_lrn_param() { - if (lrn_param_ != NULL) lrn_param_->::caffe::LRNParameter::Clear(); - clear_has_lrn_param(); -} -inline const ::caffe::LRNParameter& LayerParameter::lrn_param() const { - return lrn_param_ != NULL ? *lrn_param_ : *default_instance_->lrn_param_; -} -inline ::caffe::LRNParameter* LayerParameter::mutable_lrn_param() { - set_has_lrn_param(); - if (lrn_param_ == NULL) lrn_param_ = new ::caffe::LRNParameter; - return lrn_param_; -} -inline ::caffe::LRNParameter* LayerParameter::release_lrn_param() { - clear_has_lrn_param(); - ::caffe::LRNParameter* temp = lrn_param_; - lrn_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_lrn_param(::caffe::LRNParameter* lrn_param) { - delete lrn_param_; - lrn_param_ = lrn_param; - if (lrn_param) { - set_has_lrn_param(); - } else { - clear_has_lrn_param(); - } -} - -// optional .caffe.MemoryDataParameter memory_data_param = 119; -inline bool LayerParameter::has_memory_data_param() const { - return (_has_bits_[1] & 0x00000001u) != 0; -} -inline void LayerParameter::set_has_memory_data_param() { - _has_bits_[1] |= 0x00000001u; -} -inline void LayerParameter::clear_has_memory_data_param() { - _has_bits_[1] &= ~0x00000001u; -} -inline void LayerParameter::clear_memory_data_param() { - if (memory_data_param_ != NULL) memory_data_param_->::caffe::MemoryDataParameter::Clear(); - clear_has_memory_data_param(); -} -inline const ::caffe::MemoryDataParameter& LayerParameter::memory_data_param() const { - return memory_data_param_ != NULL ? *memory_data_param_ : *default_instance_->memory_data_param_; -} -inline ::caffe::MemoryDataParameter* LayerParameter::mutable_memory_data_param() { - set_has_memory_data_param(); - if (memory_data_param_ == NULL) memory_data_param_ = new ::caffe::MemoryDataParameter; - return memory_data_param_; -} -inline ::caffe::MemoryDataParameter* LayerParameter::release_memory_data_param() { - clear_has_memory_data_param(); - ::caffe::MemoryDataParameter* temp = memory_data_param_; - memory_data_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_memory_data_param(::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(); - } -} - -// optional .caffe.MVNParameter mvn_param = 120; -inline bool LayerParameter::has_mvn_param() const { - return (_has_bits_[1] & 0x00000002u) != 0; -} -inline void LayerParameter::set_has_mvn_param() { - _has_bits_[1] |= 0x00000002u; -} -inline void LayerParameter::clear_has_mvn_param() { - _has_bits_[1] &= ~0x00000002u; -} -inline void LayerParameter::clear_mvn_param() { - if (mvn_param_ != NULL) mvn_param_->::caffe::MVNParameter::Clear(); - clear_has_mvn_param(); -} -inline const ::caffe::MVNParameter& LayerParameter::mvn_param() const { - return mvn_param_ != NULL ? *mvn_param_ : *default_instance_->mvn_param_; -} -inline ::caffe::MVNParameter* LayerParameter::mutable_mvn_param() { - set_has_mvn_param(); - if (mvn_param_ == NULL) mvn_param_ = new ::caffe::MVNParameter; - return mvn_param_; -} -inline ::caffe::MVNParameter* LayerParameter::release_mvn_param() { - clear_has_mvn_param(); - ::caffe::MVNParameter* temp = mvn_param_; - mvn_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_mvn_param(::caffe::MVNParameter* mvn_param) { - delete mvn_param_; - mvn_param_ = mvn_param; - if (mvn_param) { - set_has_mvn_param(); - } else { - clear_has_mvn_param(); - } -} - -// optional .caffe.PoolingParameter pooling_param = 121; -inline bool LayerParameter::has_pooling_param() const { - return (_has_bits_[1] & 0x00000004u) != 0; -} -inline void LayerParameter::set_has_pooling_param() { - _has_bits_[1] |= 0x00000004u; -} -inline void LayerParameter::clear_has_pooling_param() { - _has_bits_[1] &= ~0x00000004u; -} -inline void LayerParameter::clear_pooling_param() { - if (pooling_param_ != NULL) pooling_param_->::caffe::PoolingParameter::Clear(); - clear_has_pooling_param(); -} -inline const ::caffe::PoolingParameter& LayerParameter::pooling_param() const { - return pooling_param_ != NULL ? *pooling_param_ : *default_instance_->pooling_param_; -} -inline ::caffe::PoolingParameter* LayerParameter::mutable_pooling_param() { - set_has_pooling_param(); - if (pooling_param_ == NULL) pooling_param_ = new ::caffe::PoolingParameter; - return pooling_param_; -} -inline ::caffe::PoolingParameter* LayerParameter::release_pooling_param() { - clear_has_pooling_param(); - ::caffe::PoolingParameter* temp = pooling_param_; - pooling_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_pooling_param(::caffe::PoolingParameter* pooling_param) { - delete pooling_param_; - pooling_param_ = pooling_param; - if (pooling_param) { - set_has_pooling_param(); - } else { - clear_has_pooling_param(); - } -} - -// optional .caffe.PowerParameter power_param = 122; -inline bool LayerParameter::has_power_param() const { - return (_has_bits_[1] & 0x00000008u) != 0; -} -inline void LayerParameter::set_has_power_param() { - _has_bits_[1] |= 0x00000008u; -} -inline void LayerParameter::clear_has_power_param() { - _has_bits_[1] &= ~0x00000008u; -} -inline void LayerParameter::clear_power_param() { - if (power_param_ != NULL) power_param_->::caffe::PowerParameter::Clear(); - clear_has_power_param(); -} -inline const ::caffe::PowerParameter& LayerParameter::power_param() const { - return power_param_ != NULL ? *power_param_ : *default_instance_->power_param_; -} -inline ::caffe::PowerParameter* LayerParameter::mutable_power_param() { - set_has_power_param(); - if (power_param_ == NULL) power_param_ = new ::caffe::PowerParameter; - return power_param_; -} -inline ::caffe::PowerParameter* LayerParameter::release_power_param() { - clear_has_power_param(); - ::caffe::PowerParameter* temp = power_param_; - power_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_power_param(::caffe::PowerParameter* power_param) { - delete power_param_; - power_param_ = power_param; - if (power_param) { - set_has_power_param(); - } else { - clear_has_power_param(); - } -} - -// optional .caffe.PReLUParameter prelu_param = 131; -inline bool LayerParameter::has_prelu_param() const { - return (_has_bits_[1] & 0x00000010u) != 0; -} -inline void LayerParameter::set_has_prelu_param() { - _has_bits_[1] |= 0x00000010u; -} -inline void LayerParameter::clear_has_prelu_param() { - _has_bits_[1] &= ~0x00000010u; -} -inline void LayerParameter::clear_prelu_param() { - if (prelu_param_ != NULL) prelu_param_->::caffe::PReLUParameter::Clear(); - clear_has_prelu_param(); -} -inline const ::caffe::PReLUParameter& LayerParameter::prelu_param() const { - return prelu_param_ != NULL ? *prelu_param_ : *default_instance_->prelu_param_; -} -inline ::caffe::PReLUParameter* LayerParameter::mutable_prelu_param() { - set_has_prelu_param(); - if (prelu_param_ == NULL) prelu_param_ = new ::caffe::PReLUParameter; - return prelu_param_; -} -inline ::caffe::PReLUParameter* LayerParameter::release_prelu_param() { - clear_has_prelu_param(); - ::caffe::PReLUParameter* temp = prelu_param_; - prelu_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_prelu_param(::caffe::PReLUParameter* prelu_param) { - delete prelu_param_; - prelu_param_ = prelu_param; - if (prelu_param) { - set_has_prelu_param(); - } else { - clear_has_prelu_param(); - } -} - -// optional .caffe.PythonParameter python_param = 130; -inline bool LayerParameter::has_python_param() const { - return (_has_bits_[1] & 0x00000020u) != 0; -} -inline void LayerParameter::set_has_python_param() { - _has_bits_[1] |= 0x00000020u; -} -inline void LayerParameter::clear_has_python_param() { - _has_bits_[1] &= ~0x00000020u; -} -inline void LayerParameter::clear_python_param() { - if (python_param_ != NULL) python_param_->::caffe::PythonParameter::Clear(); - clear_has_python_param(); -} -inline const ::caffe::PythonParameter& LayerParameter::python_param() const { - return python_param_ != NULL ? *python_param_ : *default_instance_->python_param_; -} -inline ::caffe::PythonParameter* LayerParameter::mutable_python_param() { - set_has_python_param(); - if (python_param_ == NULL) python_param_ = new ::caffe::PythonParameter; - return python_param_; -} -inline ::caffe::PythonParameter* LayerParameter::release_python_param() { - clear_has_python_param(); - ::caffe::PythonParameter* temp = python_param_; - python_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_python_param(::caffe::PythonParameter* python_param) { - delete python_param_; - python_param_ = python_param; - if (python_param) { - set_has_python_param(); - } else { - clear_has_python_param(); - } -} - -// optional .caffe.ReductionParameter reduction_param = 136; -inline bool LayerParameter::has_reduction_param() const { - return (_has_bits_[1] & 0x00000040u) != 0; -} -inline void LayerParameter::set_has_reduction_param() { - _has_bits_[1] |= 0x00000040u; -} -inline void LayerParameter::clear_has_reduction_param() { - _has_bits_[1] &= ~0x00000040u; -} -inline void LayerParameter::clear_reduction_param() { - if (reduction_param_ != NULL) reduction_param_->::caffe::ReductionParameter::Clear(); - clear_has_reduction_param(); -} -inline const ::caffe::ReductionParameter& LayerParameter::reduction_param() const { - return reduction_param_ != NULL ? *reduction_param_ : *default_instance_->reduction_param_; -} -inline ::caffe::ReductionParameter* LayerParameter::mutable_reduction_param() { - set_has_reduction_param(); - if (reduction_param_ == NULL) reduction_param_ = new ::caffe::ReductionParameter; - return reduction_param_; -} -inline ::caffe::ReductionParameter* LayerParameter::release_reduction_param() { - clear_has_reduction_param(); - ::caffe::ReductionParameter* temp = reduction_param_; - reduction_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_reduction_param(::caffe::ReductionParameter* reduction_param) { - delete reduction_param_; - reduction_param_ = reduction_param; - if (reduction_param) { - set_has_reduction_param(); - } else { - clear_has_reduction_param(); - } -} - -// optional .caffe.ReLUParameter relu_param = 123; -inline bool LayerParameter::has_relu_param() const { - return (_has_bits_[1] & 0x00000080u) != 0; -} -inline void LayerParameter::set_has_relu_param() { - _has_bits_[1] |= 0x00000080u; -} -inline void LayerParameter::clear_has_relu_param() { - _has_bits_[1] &= ~0x00000080u; -} -inline void LayerParameter::clear_relu_param() { - if (relu_param_ != NULL) relu_param_->::caffe::ReLUParameter::Clear(); - clear_has_relu_param(); -} -inline const ::caffe::ReLUParameter& LayerParameter::relu_param() const { - return relu_param_ != NULL ? *relu_param_ : *default_instance_->relu_param_; -} -inline ::caffe::ReLUParameter* LayerParameter::mutable_relu_param() { - set_has_relu_param(); - if (relu_param_ == NULL) relu_param_ = new ::caffe::ReLUParameter; - return relu_param_; -} -inline ::caffe::ReLUParameter* LayerParameter::release_relu_param() { - clear_has_relu_param(); - ::caffe::ReLUParameter* temp = relu_param_; - relu_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_relu_param(::caffe::ReLUParameter* relu_param) { - delete relu_param_; - relu_param_ = relu_param; - if (relu_param) { - set_has_relu_param(); - } else { - clear_has_relu_param(); - } -} - -// optional .caffe.ReshapeParameter reshape_param = 133; -inline bool LayerParameter::has_reshape_param() const { - return (_has_bits_[1] & 0x00000100u) != 0; -} -inline void LayerParameter::set_has_reshape_param() { - _has_bits_[1] |= 0x00000100u; -} -inline void LayerParameter::clear_has_reshape_param() { - _has_bits_[1] &= ~0x00000100u; -} -inline void LayerParameter::clear_reshape_param() { - if (reshape_param_ != NULL) reshape_param_->::caffe::ReshapeParameter::Clear(); - clear_has_reshape_param(); -} -inline const ::caffe::ReshapeParameter& LayerParameter::reshape_param() const { - return reshape_param_ != NULL ? *reshape_param_ : *default_instance_->reshape_param_; -} -inline ::caffe::ReshapeParameter* LayerParameter::mutable_reshape_param() { - set_has_reshape_param(); - if (reshape_param_ == NULL) reshape_param_ = new ::caffe::ReshapeParameter; - return reshape_param_; -} -inline ::caffe::ReshapeParameter* LayerParameter::release_reshape_param() { - clear_has_reshape_param(); - ::caffe::ReshapeParameter* temp = reshape_param_; - reshape_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_reshape_param(::caffe::ReshapeParameter* reshape_param) { - delete reshape_param_; - reshape_param_ = reshape_param; - if (reshape_param) { - set_has_reshape_param(); - } else { - clear_has_reshape_param(); - } -} - -// optional .caffe.SigmoidParameter sigmoid_param = 124; -inline bool LayerParameter::has_sigmoid_param() const { - return (_has_bits_[1] & 0x00000200u) != 0; -} -inline void LayerParameter::set_has_sigmoid_param() { - _has_bits_[1] |= 0x00000200u; -} -inline void LayerParameter::clear_has_sigmoid_param() { - _has_bits_[1] &= ~0x00000200u; -} -inline void LayerParameter::clear_sigmoid_param() { - if (sigmoid_param_ != NULL) sigmoid_param_->::caffe::SigmoidParameter::Clear(); - clear_has_sigmoid_param(); -} -inline const ::caffe::SigmoidParameter& LayerParameter::sigmoid_param() const { - return sigmoid_param_ != NULL ? *sigmoid_param_ : *default_instance_->sigmoid_param_; -} -inline ::caffe::SigmoidParameter* LayerParameter::mutable_sigmoid_param() { - set_has_sigmoid_param(); - if (sigmoid_param_ == NULL) sigmoid_param_ = new ::caffe::SigmoidParameter; - return sigmoid_param_; -} -inline ::caffe::SigmoidParameter* LayerParameter::release_sigmoid_param() { - clear_has_sigmoid_param(); - ::caffe::SigmoidParameter* temp = sigmoid_param_; - sigmoid_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_sigmoid_param(::caffe::SigmoidParameter* sigmoid_param) { - delete sigmoid_param_; - sigmoid_param_ = sigmoid_param; - if (sigmoid_param) { - set_has_sigmoid_param(); - } else { - clear_has_sigmoid_param(); - } -} - -// optional .caffe.SoftmaxParameter softmax_param = 125; -inline bool LayerParameter::has_softmax_param() const { - return (_has_bits_[1] & 0x00000400u) != 0; -} -inline void LayerParameter::set_has_softmax_param() { - _has_bits_[1] |= 0x00000400u; -} -inline void LayerParameter::clear_has_softmax_param() { - _has_bits_[1] &= ~0x00000400u; -} -inline void LayerParameter::clear_softmax_param() { - if (softmax_param_ != NULL) softmax_param_->::caffe::SoftmaxParameter::Clear(); - clear_has_softmax_param(); -} -inline const ::caffe::SoftmaxParameter& LayerParameter::softmax_param() const { - return softmax_param_ != NULL ? *softmax_param_ : *default_instance_->softmax_param_; -} -inline ::caffe::SoftmaxParameter* LayerParameter::mutable_softmax_param() { - set_has_softmax_param(); - if (softmax_param_ == NULL) softmax_param_ = new ::caffe::SoftmaxParameter; - return softmax_param_; -} -inline ::caffe::SoftmaxParameter* LayerParameter::release_softmax_param() { - clear_has_softmax_param(); - ::caffe::SoftmaxParameter* temp = softmax_param_; - softmax_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_softmax_param(::caffe::SoftmaxParameter* softmax_param) { - delete softmax_param_; - softmax_param_ = softmax_param; - if (softmax_param) { - set_has_softmax_param(); - } else { - clear_has_softmax_param(); - } -} - -// optional .caffe.SPPParameter spp_param = 132; -inline bool LayerParameter::has_spp_param() const { - return (_has_bits_[1] & 0x00000800u) != 0; -} -inline void LayerParameter::set_has_spp_param() { - _has_bits_[1] |= 0x00000800u; -} -inline void LayerParameter::clear_has_spp_param() { - _has_bits_[1] &= ~0x00000800u; -} -inline void LayerParameter::clear_spp_param() { - if (spp_param_ != NULL) spp_param_->::caffe::SPPParameter::Clear(); - clear_has_spp_param(); -} -inline const ::caffe::SPPParameter& LayerParameter::spp_param() const { - return spp_param_ != NULL ? *spp_param_ : *default_instance_->spp_param_; -} -inline ::caffe::SPPParameter* LayerParameter::mutable_spp_param() { - set_has_spp_param(); - if (spp_param_ == NULL) spp_param_ = new ::caffe::SPPParameter; - return spp_param_; -} -inline ::caffe::SPPParameter* LayerParameter::release_spp_param() { - clear_has_spp_param(); - ::caffe::SPPParameter* temp = spp_param_; - spp_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_spp_param(::caffe::SPPParameter* spp_param) { - delete spp_param_; - spp_param_ = spp_param; - if (spp_param) { - set_has_spp_param(); - } else { - clear_has_spp_param(); - } -} - -// optional .caffe.SliceParameter slice_param = 126; -inline bool LayerParameter::has_slice_param() const { - return (_has_bits_[1] & 0x00001000u) != 0; -} -inline void LayerParameter::set_has_slice_param() { - _has_bits_[1] |= 0x00001000u; -} -inline void LayerParameter::clear_has_slice_param() { - _has_bits_[1] &= ~0x00001000u; -} -inline void LayerParameter::clear_slice_param() { - if (slice_param_ != NULL) slice_param_->::caffe::SliceParameter::Clear(); - clear_has_slice_param(); -} -inline const ::caffe::SliceParameter& LayerParameter::slice_param() const { - return slice_param_ != NULL ? *slice_param_ : *default_instance_->slice_param_; -} -inline ::caffe::SliceParameter* LayerParameter::mutable_slice_param() { - set_has_slice_param(); - if (slice_param_ == NULL) slice_param_ = new ::caffe::SliceParameter; - return slice_param_; -} -inline ::caffe::SliceParameter* LayerParameter::release_slice_param() { - clear_has_slice_param(); - ::caffe::SliceParameter* temp = slice_param_; - slice_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_slice_param(::caffe::SliceParameter* slice_param) { - delete slice_param_; - slice_param_ = slice_param; - if (slice_param) { - set_has_slice_param(); - } else { - clear_has_slice_param(); - } -} - -// optional .caffe.TanHParameter tanh_param = 127; -inline bool LayerParameter::has_tanh_param() const { - return (_has_bits_[1] & 0x00002000u) != 0; -} -inline void LayerParameter::set_has_tanh_param() { - _has_bits_[1] |= 0x00002000u; -} -inline void LayerParameter::clear_has_tanh_param() { - _has_bits_[1] &= ~0x00002000u; -} -inline void LayerParameter::clear_tanh_param() { - if (tanh_param_ != NULL) tanh_param_->::caffe::TanHParameter::Clear(); - clear_has_tanh_param(); -} -inline const ::caffe::TanHParameter& LayerParameter::tanh_param() const { - return tanh_param_ != NULL ? *tanh_param_ : *default_instance_->tanh_param_; -} -inline ::caffe::TanHParameter* LayerParameter::mutable_tanh_param() { - set_has_tanh_param(); - if (tanh_param_ == NULL) tanh_param_ = new ::caffe::TanHParameter; - return tanh_param_; -} -inline ::caffe::TanHParameter* LayerParameter::release_tanh_param() { - clear_has_tanh_param(); - ::caffe::TanHParameter* temp = tanh_param_; - tanh_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_tanh_param(::caffe::TanHParameter* tanh_param) { - delete tanh_param_; - tanh_param_ = tanh_param; - if (tanh_param) { - set_has_tanh_param(); - } else { - clear_has_tanh_param(); - } -} - -// optional .caffe.ThresholdParameter threshold_param = 128; -inline bool LayerParameter::has_threshold_param() const { - return (_has_bits_[1] & 0x00004000u) != 0; -} -inline void LayerParameter::set_has_threshold_param() { - _has_bits_[1] |= 0x00004000u; -} -inline void LayerParameter::clear_has_threshold_param() { - _has_bits_[1] &= ~0x00004000u; -} -inline void LayerParameter::clear_threshold_param() { - if (threshold_param_ != NULL) threshold_param_->::caffe::ThresholdParameter::Clear(); - clear_has_threshold_param(); -} -inline const ::caffe::ThresholdParameter& LayerParameter::threshold_param() const { - return threshold_param_ != NULL ? *threshold_param_ : *default_instance_->threshold_param_; -} -inline ::caffe::ThresholdParameter* LayerParameter::mutable_threshold_param() { - set_has_threshold_param(); - if (threshold_param_ == NULL) threshold_param_ = new ::caffe::ThresholdParameter; - return threshold_param_; -} -inline ::caffe::ThresholdParameter* LayerParameter::release_threshold_param() { - clear_has_threshold_param(); - ::caffe::ThresholdParameter* temp = threshold_param_; - threshold_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_threshold_param(::caffe::ThresholdParameter* threshold_param) { - delete threshold_param_; - threshold_param_ = threshold_param; - if (threshold_param) { - set_has_threshold_param(); - } else { - clear_has_threshold_param(); - } -} - -// optional .caffe.WindowDataParameter window_data_param = 129; -inline bool LayerParameter::has_window_data_param() const { - return (_has_bits_[1] & 0x00008000u) != 0; -} -inline void LayerParameter::set_has_window_data_param() { - _has_bits_[1] |= 0x00008000u; -} -inline void LayerParameter::clear_has_window_data_param() { - _has_bits_[1] &= ~0x00008000u; -} -inline void LayerParameter::clear_window_data_param() { - if (window_data_param_ != NULL) window_data_param_->::caffe::WindowDataParameter::Clear(); - clear_has_window_data_param(); -} -inline const ::caffe::WindowDataParameter& LayerParameter::window_data_param() const { - return window_data_param_ != NULL ? *window_data_param_ : *default_instance_->window_data_param_; -} -inline ::caffe::WindowDataParameter* LayerParameter::mutable_window_data_param() { - set_has_window_data_param(); - if (window_data_param_ == NULL) window_data_param_ = new ::caffe::WindowDataParameter; - return window_data_param_; -} -inline ::caffe::WindowDataParameter* LayerParameter::release_window_data_param() { - clear_has_window_data_param(); - ::caffe::WindowDataParameter* temp = window_data_param_; - window_data_param_ = NULL; - return temp; -} -inline void LayerParameter::set_allocated_window_data_param(::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(); - } -} - -// ------------------------------------------------------------------- - -// TransformationParameter - -// optional float scale = 1 [default = 1]; -inline bool TransformationParameter::has_scale() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void TransformationParameter::set_has_scale() { - _has_bits_[0] |= 0x00000001u; -} -inline void TransformationParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000001u; -} -inline void TransformationParameter::clear_scale() { - scale_ = 1; - clear_has_scale(); -} -inline float TransformationParameter::scale() const { - return scale_; -} -inline void TransformationParameter::set_scale(float value) { - set_has_scale(); - scale_ = value; -} - -// optional bool mirror = 2 [default = false]; -inline bool TransformationParameter::has_mirror() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void TransformationParameter::set_has_mirror() { - _has_bits_[0] |= 0x00000002u; -} -inline void TransformationParameter::clear_has_mirror() { - _has_bits_[0] &= ~0x00000002u; -} -inline void TransformationParameter::clear_mirror() { - mirror_ = false; - clear_has_mirror(); -} -inline bool TransformationParameter::mirror() const { - return mirror_; -} -inline void TransformationParameter::set_mirror(bool value) { - set_has_mirror(); - mirror_ = value; -} - -// optional uint32 crop_size = 3 [default = 0]; -inline bool TransformationParameter::has_crop_size() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void TransformationParameter::set_has_crop_size() { - _has_bits_[0] |= 0x00000004u; -} -inline void TransformationParameter::clear_has_crop_size() { - _has_bits_[0] &= ~0x00000004u; -} -inline void TransformationParameter::clear_crop_size() { - crop_size_ = 0u; - clear_has_crop_size(); -} -inline ::google::protobuf::uint32 TransformationParameter::crop_size() const { - return crop_size_; -} -inline void TransformationParameter::set_crop_size(::google::protobuf::uint32 value) { - set_has_crop_size(); - crop_size_ = value; -} - -// optional string mean_file = 4; -inline bool TransformationParameter::has_mean_file() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void TransformationParameter::set_has_mean_file() { - _has_bits_[0] |= 0x00000008u; -} -inline void TransformationParameter::clear_has_mean_file() { - _has_bits_[0] &= ~0x00000008u; -} -inline void TransformationParameter::clear_mean_file() { - if (mean_file_ != &::google::protobuf::internal::kEmptyString) { - mean_file_->clear(); - } - clear_has_mean_file(); -} -inline const ::std::string& TransformationParameter::mean_file() const { - return *mean_file_; -} -inline void TransformationParameter::set_mean_file(const ::std::string& value) { - set_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - mean_file_ = new ::std::string; - } - mean_file_->assign(value); -} -inline void TransformationParameter::set_mean_file(const char* value) { - set_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - mean_file_ = new ::std::string; - } - mean_file_->assign(value); -} -inline void TransformationParameter::set_mean_file(const char* value, size_t size) { - set_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - mean_file_ = new ::std::string; - } - mean_file_->assign(reinterpret_cast(value), size); -} -inline ::std::string* TransformationParameter::mutable_mean_file() { - set_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - mean_file_ = new ::std::string; - } - return mean_file_; -} -inline ::std::string* TransformationParameter::release_mean_file() { - clear_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = mean_file_; - mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void TransformationParameter::set_allocated_mean_file(::std::string* mean_file) { - if (mean_file_ != &::google::protobuf::internal::kEmptyString) { - delete mean_file_; - } - if (mean_file) { - set_has_mean_file(); - mean_file_ = mean_file; - } else { - clear_has_mean_file(); - mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// repeated float mean_value = 5; -inline int TransformationParameter::mean_value_size() const { - return mean_value_.size(); -} -inline void TransformationParameter::clear_mean_value() { - mean_value_.Clear(); -} -inline float TransformationParameter::mean_value(int index) const { - return mean_value_.Get(index); -} -inline void TransformationParameter::set_mean_value(int index, float value) { - mean_value_.Set(index, value); -} -inline void TransformationParameter::add_mean_value(float value) { - mean_value_.Add(value); -} -inline const ::google::protobuf::RepeatedField< float >& -TransformationParameter::mean_value() const { - return mean_value_; -} -inline ::google::protobuf::RepeatedField< float >* -TransformationParameter::mutable_mean_value() { - return &mean_value_; -} - -// optional bool force_color = 6 [default = false]; -inline bool TransformationParameter::has_force_color() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void TransformationParameter::set_has_force_color() { - _has_bits_[0] |= 0x00000020u; -} -inline void TransformationParameter::clear_has_force_color() { - _has_bits_[0] &= ~0x00000020u; -} -inline void TransformationParameter::clear_force_color() { - force_color_ = false; - clear_has_force_color(); -} -inline bool TransformationParameter::force_color() const { - return force_color_; -} -inline void TransformationParameter::set_force_color(bool value) { - set_has_force_color(); - force_color_ = value; -} - -// optional bool force_gray = 7 [default = false]; -inline bool TransformationParameter::has_force_gray() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void TransformationParameter::set_has_force_gray() { - _has_bits_[0] |= 0x00000040u; -} -inline void TransformationParameter::clear_has_force_gray() { - _has_bits_[0] &= ~0x00000040u; -} -inline void TransformationParameter::clear_force_gray() { - force_gray_ = false; - clear_has_force_gray(); -} -inline bool TransformationParameter::force_gray() const { - return force_gray_; -} -inline void TransformationParameter::set_force_gray(bool value) { - set_has_force_gray(); - force_gray_ = value; -} - -// ------------------------------------------------------------------- - -// LossParameter - -// optional int32 ignore_label = 1; -inline bool LossParameter::has_ignore_label() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void LossParameter::set_has_ignore_label() { - _has_bits_[0] |= 0x00000001u; -} -inline void LossParameter::clear_has_ignore_label() { - _has_bits_[0] &= ~0x00000001u; -} -inline void LossParameter::clear_ignore_label() { - ignore_label_ = 0; - clear_has_ignore_label(); -} -inline ::google::protobuf::int32 LossParameter::ignore_label() const { - return ignore_label_; -} -inline void LossParameter::set_ignore_label(::google::protobuf::int32 value) { - set_has_ignore_label(); - ignore_label_ = value; -} - -// optional bool normalize = 2 [default = true]; -inline bool LossParameter::has_normalize() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void LossParameter::set_has_normalize() { - _has_bits_[0] |= 0x00000002u; -} -inline void LossParameter::clear_has_normalize() { - _has_bits_[0] &= ~0x00000002u; -} -inline void LossParameter::clear_normalize() { - normalize_ = true; - clear_has_normalize(); -} -inline bool LossParameter::normalize() const { - return normalize_; -} -inline void LossParameter::set_normalize(bool value) { - set_has_normalize(); - normalize_ = value; -} - -// ------------------------------------------------------------------- - -// AccuracyParameter - -// optional uint32 top_k = 1 [default = 1]; -inline bool AccuracyParameter::has_top_k() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AccuracyParameter::set_has_top_k() { - _has_bits_[0] |= 0x00000001u; -} -inline void AccuracyParameter::clear_has_top_k() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AccuracyParameter::clear_top_k() { - top_k_ = 1u; - clear_has_top_k(); -} -inline ::google::protobuf::uint32 AccuracyParameter::top_k() const { - return top_k_; -} -inline void AccuracyParameter::set_top_k(::google::protobuf::uint32 value) { - set_has_top_k(); - top_k_ = value; -} - -// optional int32 axis = 2 [default = 1]; -inline bool AccuracyParameter::has_axis() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AccuracyParameter::set_has_axis() { - _has_bits_[0] |= 0x00000002u; -} -inline void AccuracyParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000002u; -} -inline void AccuracyParameter::clear_axis() { - axis_ = 1; - clear_has_axis(); -} -inline ::google::protobuf::int32 AccuracyParameter::axis() const { - return axis_; -} -inline void AccuracyParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; -} - -// optional int32 ignore_label = 3; -inline bool AccuracyParameter::has_ignore_label() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void AccuracyParameter::set_has_ignore_label() { - _has_bits_[0] |= 0x00000004u; -} -inline void AccuracyParameter::clear_has_ignore_label() { - _has_bits_[0] &= ~0x00000004u; -} -inline void AccuracyParameter::clear_ignore_label() { - ignore_label_ = 0; - clear_has_ignore_label(); -} -inline ::google::protobuf::int32 AccuracyParameter::ignore_label() const { - return ignore_label_; -} -inline void AccuracyParameter::set_ignore_label(::google::protobuf::int32 value) { - set_has_ignore_label(); - ignore_label_ = value; -} - -// ------------------------------------------------------------------- - -// ArgMaxParameter - -// optional bool out_max_val = 1 [default = false]; -inline bool ArgMaxParameter::has_out_max_val() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ArgMaxParameter::set_has_out_max_val() { - _has_bits_[0] |= 0x00000001u; -} -inline void ArgMaxParameter::clear_has_out_max_val() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ArgMaxParameter::clear_out_max_val() { - out_max_val_ = false; - clear_has_out_max_val(); -} -inline bool ArgMaxParameter::out_max_val() const { - return out_max_val_; -} -inline void ArgMaxParameter::set_out_max_val(bool value) { - set_has_out_max_val(); - out_max_val_ = value; -} - -// optional uint32 top_k = 2 [default = 1]; -inline bool ArgMaxParameter::has_top_k() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ArgMaxParameter::set_has_top_k() { - _has_bits_[0] |= 0x00000002u; -} -inline void ArgMaxParameter::clear_has_top_k() { - _has_bits_[0] &= ~0x00000002u; -} -inline void ArgMaxParameter::clear_top_k() { - top_k_ = 1u; - clear_has_top_k(); -} -inline ::google::protobuf::uint32 ArgMaxParameter::top_k() const { - return top_k_; -} -inline void ArgMaxParameter::set_top_k(::google::protobuf::uint32 value) { - set_has_top_k(); - top_k_ = value; -} - -// ------------------------------------------------------------------- - -// ConcatParameter - -// optional int32 axis = 2 [default = 1]; -inline bool ConcatParameter::has_axis() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ConcatParameter::set_has_axis() { - _has_bits_[0] |= 0x00000001u; -} -inline void ConcatParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ConcatParameter::clear_axis() { - axis_ = 1; - clear_has_axis(); -} -inline ::google::protobuf::int32 ConcatParameter::axis() const { - return axis_; -} -inline void ConcatParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; -} - -// optional uint32 concat_dim = 1 [default = 1]; -inline bool ConcatParameter::has_concat_dim() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ConcatParameter::set_has_concat_dim() { - _has_bits_[0] |= 0x00000002u; -} -inline void ConcatParameter::clear_has_concat_dim() { - _has_bits_[0] &= ~0x00000002u; -} -inline void ConcatParameter::clear_concat_dim() { - concat_dim_ = 1u; - clear_has_concat_dim(); -} -inline ::google::protobuf::uint32 ConcatParameter::concat_dim() const { - return concat_dim_; -} -inline void ConcatParameter::set_concat_dim(::google::protobuf::uint32 value) { - set_has_concat_dim(); - concat_dim_ = value; -} - -// ------------------------------------------------------------------- - -// ContrastiveLossParameter - -// optional float margin = 1 [default = 1]; -inline bool ContrastiveLossParameter::has_margin() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ContrastiveLossParameter::set_has_margin() { - _has_bits_[0] |= 0x00000001u; -} -inline void ContrastiveLossParameter::clear_has_margin() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ContrastiveLossParameter::clear_margin() { - margin_ = 1; - clear_has_margin(); -} -inline float ContrastiveLossParameter::margin() const { - return margin_; -} -inline void ContrastiveLossParameter::set_margin(float value) { - set_has_margin(); - margin_ = value; -} - -// optional bool legacy_version = 2 [default = false]; -inline bool ContrastiveLossParameter::has_legacy_version() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ContrastiveLossParameter::set_has_legacy_version() { - _has_bits_[0] |= 0x00000002u; -} -inline void ContrastiveLossParameter::clear_has_legacy_version() { - _has_bits_[0] &= ~0x00000002u; -} -inline void ContrastiveLossParameter::clear_legacy_version() { - legacy_version_ = false; - clear_has_legacy_version(); -} -inline bool ContrastiveLossParameter::legacy_version() const { - return legacy_version_; -} -inline void ContrastiveLossParameter::set_legacy_version(bool value) { - set_has_legacy_version(); - legacy_version_ = value; -} - -// ------------------------------------------------------------------- - -// ConvolutionParameter - -// optional uint32 num_output = 1; -inline bool ConvolutionParameter::has_num_output() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ConvolutionParameter::set_has_num_output() { - _has_bits_[0] |= 0x00000001u; -} -inline void ConvolutionParameter::clear_has_num_output() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ConvolutionParameter::clear_num_output() { - num_output_ = 0u; - clear_has_num_output(); -} -inline ::google::protobuf::uint32 ConvolutionParameter::num_output() const { - return num_output_; -} -inline void ConvolutionParameter::set_num_output(::google::protobuf::uint32 value) { - set_has_num_output(); - num_output_ = value; -} - -// optional bool bias_term = 2 [default = true]; -inline bool ConvolutionParameter::has_bias_term() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ConvolutionParameter::set_has_bias_term() { - _has_bits_[0] |= 0x00000002u; -} -inline void ConvolutionParameter::clear_has_bias_term() { - _has_bits_[0] &= ~0x00000002u; -} -inline void ConvolutionParameter::clear_bias_term() { - bias_term_ = true; - clear_has_bias_term(); -} -inline bool ConvolutionParameter::bias_term() const { - return bias_term_; -} -inline void ConvolutionParameter::set_bias_term(bool value) { - set_has_bias_term(); - bias_term_ = value; -} - -// optional uint32 pad = 3 [default = 0]; -inline bool ConvolutionParameter::has_pad() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void ConvolutionParameter::set_has_pad() { - _has_bits_[0] |= 0x00000004u; -} -inline void ConvolutionParameter::clear_has_pad() { - _has_bits_[0] &= ~0x00000004u; -} -inline void ConvolutionParameter::clear_pad() { - pad_ = 0u; - clear_has_pad(); -} -inline ::google::protobuf::uint32 ConvolutionParameter::pad() const { - return pad_; -} -inline void ConvolutionParameter::set_pad(::google::protobuf::uint32 value) { - set_has_pad(); - pad_ = value; -} - -// optional uint32 pad_h = 9 [default = 0]; -inline bool ConvolutionParameter::has_pad_h() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void ConvolutionParameter::set_has_pad_h() { - _has_bits_[0] |= 0x00000008u; -} -inline void ConvolutionParameter::clear_has_pad_h() { - _has_bits_[0] &= ~0x00000008u; -} -inline void ConvolutionParameter::clear_pad_h() { - pad_h_ = 0u; - clear_has_pad_h(); -} -inline ::google::protobuf::uint32 ConvolutionParameter::pad_h() const { - return pad_h_; -} -inline void ConvolutionParameter::set_pad_h(::google::protobuf::uint32 value) { - set_has_pad_h(); - pad_h_ = value; -} - -// optional uint32 pad_w = 10 [default = 0]; -inline bool ConvolutionParameter::has_pad_w() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void ConvolutionParameter::set_has_pad_w() { - _has_bits_[0] |= 0x00000010u; -} -inline void ConvolutionParameter::clear_has_pad_w() { - _has_bits_[0] &= ~0x00000010u; -} -inline void ConvolutionParameter::clear_pad_w() { - pad_w_ = 0u; - clear_has_pad_w(); -} -inline ::google::protobuf::uint32 ConvolutionParameter::pad_w() const { - return pad_w_; -} -inline void ConvolutionParameter::set_pad_w(::google::protobuf::uint32 value) { - set_has_pad_w(); - pad_w_ = value; -} - -// optional uint32 kernel_size = 4; -inline bool ConvolutionParameter::has_kernel_size() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void ConvolutionParameter::set_has_kernel_size() { - _has_bits_[0] |= 0x00000020u; -} -inline void ConvolutionParameter::clear_has_kernel_size() { - _has_bits_[0] &= ~0x00000020u; -} -inline void ConvolutionParameter::clear_kernel_size() { - kernel_size_ = 0u; - clear_has_kernel_size(); -} -inline ::google::protobuf::uint32 ConvolutionParameter::kernel_size() const { - return kernel_size_; -} -inline void ConvolutionParameter::set_kernel_size(::google::protobuf::uint32 value) { - set_has_kernel_size(); - kernel_size_ = value; -} - -// optional uint32 kernel_h = 11; -inline bool ConvolutionParameter::has_kernel_h() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void ConvolutionParameter::set_has_kernel_h() { - _has_bits_[0] |= 0x00000040u; -} -inline void ConvolutionParameter::clear_has_kernel_h() { - _has_bits_[0] &= ~0x00000040u; -} -inline void ConvolutionParameter::clear_kernel_h() { - kernel_h_ = 0u; - clear_has_kernel_h(); -} -inline ::google::protobuf::uint32 ConvolutionParameter::kernel_h() const { - return kernel_h_; -} -inline void ConvolutionParameter::set_kernel_h(::google::protobuf::uint32 value) { - set_has_kernel_h(); - kernel_h_ = value; -} - -// optional uint32 kernel_w = 12; -inline bool ConvolutionParameter::has_kernel_w() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -inline void ConvolutionParameter::set_has_kernel_w() { - _has_bits_[0] |= 0x00000080u; -} -inline void ConvolutionParameter::clear_has_kernel_w() { - _has_bits_[0] &= ~0x00000080u; -} -inline void ConvolutionParameter::clear_kernel_w() { - kernel_w_ = 0u; - clear_has_kernel_w(); -} -inline ::google::protobuf::uint32 ConvolutionParameter::kernel_w() const { - return kernel_w_; -} -inline void ConvolutionParameter::set_kernel_w(::google::protobuf::uint32 value) { - set_has_kernel_w(); - kernel_w_ = value; -} - -// optional uint32 group = 5 [default = 1]; -inline bool ConvolutionParameter::has_group() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -inline void ConvolutionParameter::set_has_group() { - _has_bits_[0] |= 0x00000100u; -} -inline void ConvolutionParameter::clear_has_group() { - _has_bits_[0] &= ~0x00000100u; -} -inline void ConvolutionParameter::clear_group() { - group_ = 1u; - clear_has_group(); -} -inline ::google::protobuf::uint32 ConvolutionParameter::group() const { - return group_; -} -inline void ConvolutionParameter::set_group(::google::protobuf::uint32 value) { - set_has_group(); - group_ = value; -} - -// optional uint32 stride = 6 [default = 1]; -inline bool ConvolutionParameter::has_stride() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -inline void ConvolutionParameter::set_has_stride() { - _has_bits_[0] |= 0x00000200u; -} -inline void ConvolutionParameter::clear_has_stride() { - _has_bits_[0] &= ~0x00000200u; -} -inline void ConvolutionParameter::clear_stride() { - stride_ = 1u; - clear_has_stride(); -} -inline ::google::protobuf::uint32 ConvolutionParameter::stride() const { - return stride_; -} -inline void ConvolutionParameter::set_stride(::google::protobuf::uint32 value) { - set_has_stride(); - stride_ = value; -} - -// optional uint32 stride_h = 13; -inline bool ConvolutionParameter::has_stride_h() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -inline void ConvolutionParameter::set_has_stride_h() { - _has_bits_[0] |= 0x00000400u; -} -inline void ConvolutionParameter::clear_has_stride_h() { - _has_bits_[0] &= ~0x00000400u; -} -inline void ConvolutionParameter::clear_stride_h() { - stride_h_ = 0u; - clear_has_stride_h(); -} -inline ::google::protobuf::uint32 ConvolutionParameter::stride_h() const { - return stride_h_; -} -inline void ConvolutionParameter::set_stride_h(::google::protobuf::uint32 value) { - set_has_stride_h(); - stride_h_ = value; -} - -// optional uint32 stride_w = 14; -inline bool ConvolutionParameter::has_stride_w() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -inline void ConvolutionParameter::set_has_stride_w() { - _has_bits_[0] |= 0x00000800u; -} -inline void ConvolutionParameter::clear_has_stride_w() { - _has_bits_[0] &= ~0x00000800u; -} -inline void ConvolutionParameter::clear_stride_w() { - stride_w_ = 0u; - clear_has_stride_w(); -} -inline ::google::protobuf::uint32 ConvolutionParameter::stride_w() const { - return stride_w_; -} -inline void ConvolutionParameter::set_stride_w(::google::protobuf::uint32 value) { - set_has_stride_w(); - stride_w_ = value; -} - -// optional .caffe.FillerParameter weight_filler = 7; -inline bool ConvolutionParameter::has_weight_filler() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -inline void ConvolutionParameter::set_has_weight_filler() { - _has_bits_[0] |= 0x00001000u; -} -inline void ConvolutionParameter::clear_has_weight_filler() { - _has_bits_[0] &= ~0x00001000u; -} -inline void ConvolutionParameter::clear_weight_filler() { - if (weight_filler_ != NULL) weight_filler_->::caffe::FillerParameter::Clear(); - clear_has_weight_filler(); -} -inline const ::caffe::FillerParameter& ConvolutionParameter::weight_filler() const { - return weight_filler_ != NULL ? *weight_filler_ : *default_instance_->weight_filler_; -} -inline ::caffe::FillerParameter* ConvolutionParameter::mutable_weight_filler() { - set_has_weight_filler(); - if (weight_filler_ == NULL) weight_filler_ = new ::caffe::FillerParameter; - return weight_filler_; -} -inline ::caffe::FillerParameter* ConvolutionParameter::release_weight_filler() { - clear_has_weight_filler(); - ::caffe::FillerParameter* temp = weight_filler_; - weight_filler_ = NULL; - return temp; -} -inline void ConvolutionParameter::set_allocated_weight_filler(::caffe::FillerParameter* weight_filler) { - delete weight_filler_; - weight_filler_ = weight_filler; - if (weight_filler) { - set_has_weight_filler(); - } else { - clear_has_weight_filler(); - } -} - -// optional .caffe.FillerParameter bias_filler = 8; -inline bool ConvolutionParameter::has_bias_filler() const { - return (_has_bits_[0] & 0x00002000u) != 0; -} -inline void ConvolutionParameter::set_has_bias_filler() { - _has_bits_[0] |= 0x00002000u; -} -inline void ConvolutionParameter::clear_has_bias_filler() { - _has_bits_[0] &= ~0x00002000u; -} -inline void ConvolutionParameter::clear_bias_filler() { - if (bias_filler_ != NULL) bias_filler_->::caffe::FillerParameter::Clear(); - clear_has_bias_filler(); -} -inline const ::caffe::FillerParameter& ConvolutionParameter::bias_filler() const { - return bias_filler_ != NULL ? *bias_filler_ : *default_instance_->bias_filler_; -} -inline ::caffe::FillerParameter* ConvolutionParameter::mutable_bias_filler() { - set_has_bias_filler(); - if (bias_filler_ == NULL) bias_filler_ = new ::caffe::FillerParameter; - return bias_filler_; -} -inline ::caffe::FillerParameter* ConvolutionParameter::release_bias_filler() { - clear_has_bias_filler(); - ::caffe::FillerParameter* temp = bias_filler_; - bias_filler_ = NULL; - return temp; -} -inline void ConvolutionParameter::set_allocated_bias_filler(::caffe::FillerParameter* bias_filler) { - delete bias_filler_; - bias_filler_ = bias_filler; - if (bias_filler) { - set_has_bias_filler(); - } else { - clear_has_bias_filler(); - } -} - -// optional .caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; -inline bool ConvolutionParameter::has_engine() const { - return (_has_bits_[0] & 0x00004000u) != 0; -} -inline void ConvolutionParameter::set_has_engine() { - _has_bits_[0] |= 0x00004000u; -} -inline void ConvolutionParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00004000u; -} -inline void ConvolutionParameter::clear_engine() { - engine_ = 0; - clear_has_engine(); -} -inline ::caffe::ConvolutionParameter_Engine ConvolutionParameter::engine() const { - return static_cast< ::caffe::ConvolutionParameter_Engine >(engine_); -} -inline void ConvolutionParameter::set_engine(::caffe::ConvolutionParameter_Engine value) { - assert(::caffe::ConvolutionParameter_Engine_IsValid(value)); - set_has_engine(); - engine_ = value; -} - -// ------------------------------------------------------------------- - -// DataParameter - -// optional string source = 1; -inline bool DataParameter::has_source() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void DataParameter::set_has_source() { - _has_bits_[0] |= 0x00000001u; -} -inline void DataParameter::clear_has_source() { - _has_bits_[0] &= ~0x00000001u; -} -inline void DataParameter::clear_source() { - if (source_ != &::google::protobuf::internal::kEmptyString) { - source_->clear(); - } - clear_has_source(); -} -inline const ::std::string& DataParameter::source() const { - return *source_; -} -inline void DataParameter::set_source(const ::std::string& value) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(value); -} -inline void DataParameter::set_source(const char* value) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(value); -} -inline void DataParameter::set_source(const char* value, size_t size) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(reinterpret_cast(value), size); -} -inline ::std::string* DataParameter::mutable_source() { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - return source_; -} -inline ::std::string* DataParameter::release_source() { - clear_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = source_; - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void DataParameter::set_allocated_source(::std::string* source) { - if (source_ != &::google::protobuf::internal::kEmptyString) { - delete source_; - } - if (source) { - set_has_source(); - source_ = source; - } else { - clear_has_source(); - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional uint32 batch_size = 4; -inline bool DataParameter::has_batch_size() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void DataParameter::set_has_batch_size() { - _has_bits_[0] |= 0x00000002u; -} -inline void DataParameter::clear_has_batch_size() { - _has_bits_[0] &= ~0x00000002u; -} -inline void DataParameter::clear_batch_size() { - batch_size_ = 0u; - clear_has_batch_size(); -} -inline ::google::protobuf::uint32 DataParameter::batch_size() const { - return batch_size_; -} -inline void DataParameter::set_batch_size(::google::protobuf::uint32 value) { - set_has_batch_size(); - batch_size_ = value; -} - -// optional uint32 rand_skip = 7 [default = 0]; -inline bool DataParameter::has_rand_skip() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void DataParameter::set_has_rand_skip() { - _has_bits_[0] |= 0x00000004u; -} -inline void DataParameter::clear_has_rand_skip() { - _has_bits_[0] &= ~0x00000004u; -} -inline void DataParameter::clear_rand_skip() { - rand_skip_ = 0u; - clear_has_rand_skip(); -} -inline ::google::protobuf::uint32 DataParameter::rand_skip() const { - return rand_skip_; -} -inline void DataParameter::set_rand_skip(::google::protobuf::uint32 value) { - set_has_rand_skip(); - rand_skip_ = value; -} - -// optional .caffe.DataParameter.DB backend = 8 [default = LEVELDB]; -inline bool DataParameter::has_backend() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void DataParameter::set_has_backend() { - _has_bits_[0] |= 0x00000008u; -} -inline void DataParameter::clear_has_backend() { - _has_bits_[0] &= ~0x00000008u; -} -inline void DataParameter::clear_backend() { - backend_ = 0; - clear_has_backend(); -} -inline ::caffe::DataParameter_DB DataParameter::backend() const { - return static_cast< ::caffe::DataParameter_DB >(backend_); -} -inline void DataParameter::set_backend(::caffe::DataParameter_DB value) { - assert(::caffe::DataParameter_DB_IsValid(value)); - set_has_backend(); - backend_ = value; -} - -// optional float scale = 2 [default = 1]; -inline bool DataParameter::has_scale() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void DataParameter::set_has_scale() { - _has_bits_[0] |= 0x00000010u; -} -inline void DataParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000010u; -} -inline void DataParameter::clear_scale() { - scale_ = 1; - clear_has_scale(); -} -inline float DataParameter::scale() const { - return scale_; -} -inline void DataParameter::set_scale(float value) { - set_has_scale(); - scale_ = value; -} - -// optional string mean_file = 3; -inline bool DataParameter::has_mean_file() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void DataParameter::set_has_mean_file() { - _has_bits_[0] |= 0x00000020u; -} -inline void DataParameter::clear_has_mean_file() { - _has_bits_[0] &= ~0x00000020u; -} -inline void DataParameter::clear_mean_file() { - if (mean_file_ != &::google::protobuf::internal::kEmptyString) { - mean_file_->clear(); - } - clear_has_mean_file(); -} -inline const ::std::string& DataParameter::mean_file() const { - return *mean_file_; -} -inline void DataParameter::set_mean_file(const ::std::string& value) { - set_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - mean_file_ = new ::std::string; - } - mean_file_->assign(value); -} -inline void DataParameter::set_mean_file(const char* value) { - set_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - mean_file_ = new ::std::string; - } - mean_file_->assign(value); -} -inline void DataParameter::set_mean_file(const char* value, size_t size) { - set_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - mean_file_ = new ::std::string; - } - mean_file_->assign(reinterpret_cast(value), size); -} -inline ::std::string* DataParameter::mutable_mean_file() { - set_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - mean_file_ = new ::std::string; - } - return mean_file_; -} -inline ::std::string* DataParameter::release_mean_file() { - clear_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = mean_file_; - mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void DataParameter::set_allocated_mean_file(::std::string* mean_file) { - if (mean_file_ != &::google::protobuf::internal::kEmptyString) { - delete mean_file_; - } - if (mean_file) { - set_has_mean_file(); - mean_file_ = mean_file; - } else { - clear_has_mean_file(); - mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional uint32 crop_size = 5 [default = 0]; -inline bool DataParameter::has_crop_size() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void DataParameter::set_has_crop_size() { - _has_bits_[0] |= 0x00000040u; -} -inline void DataParameter::clear_has_crop_size() { - _has_bits_[0] &= ~0x00000040u; -} -inline void DataParameter::clear_crop_size() { - crop_size_ = 0u; - clear_has_crop_size(); -} -inline ::google::protobuf::uint32 DataParameter::crop_size() const { - return crop_size_; -} -inline void DataParameter::set_crop_size(::google::protobuf::uint32 value) { - set_has_crop_size(); - crop_size_ = value; -} - -// optional bool mirror = 6 [default = false]; -inline bool DataParameter::has_mirror() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -inline void DataParameter::set_has_mirror() { - _has_bits_[0] |= 0x00000080u; -} -inline void DataParameter::clear_has_mirror() { - _has_bits_[0] &= ~0x00000080u; -} -inline void DataParameter::clear_mirror() { - mirror_ = false; - clear_has_mirror(); -} -inline bool DataParameter::mirror() const { - return mirror_; -} -inline void DataParameter::set_mirror(bool value) { - set_has_mirror(); - mirror_ = value; -} - -// optional bool force_encoded_color = 9 [default = false]; -inline bool DataParameter::has_force_encoded_color() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -inline void DataParameter::set_has_force_encoded_color() { - _has_bits_[0] |= 0x00000100u; -} -inline void DataParameter::clear_has_force_encoded_color() { - _has_bits_[0] &= ~0x00000100u; -} -inline void DataParameter::clear_force_encoded_color() { - force_encoded_color_ = false; - clear_has_force_encoded_color(); -} -inline bool DataParameter::force_encoded_color() const { - return force_encoded_color_; -} -inline void DataParameter::set_force_encoded_color(bool value) { - set_has_force_encoded_color(); - force_encoded_color_ = value; -} - -// ------------------------------------------------------------------- - -// DropoutParameter - -// optional float dropout_ratio = 1 [default = 0.5]; -inline bool DropoutParameter::has_dropout_ratio() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void DropoutParameter::set_has_dropout_ratio() { - _has_bits_[0] |= 0x00000001u; -} -inline void DropoutParameter::clear_has_dropout_ratio() { - _has_bits_[0] &= ~0x00000001u; -} -inline void DropoutParameter::clear_dropout_ratio() { - dropout_ratio_ = 0.5f; - clear_has_dropout_ratio(); -} -inline float DropoutParameter::dropout_ratio() const { - return dropout_ratio_; -} -inline void DropoutParameter::set_dropout_ratio(float value) { - set_has_dropout_ratio(); - dropout_ratio_ = value; -} - -// ------------------------------------------------------------------- - -// DummyDataParameter - -// repeated .caffe.FillerParameter data_filler = 1; -inline int DummyDataParameter::data_filler_size() const { - return data_filler_.size(); -} -inline void DummyDataParameter::clear_data_filler() { - data_filler_.Clear(); -} -inline const ::caffe::FillerParameter& DummyDataParameter::data_filler(int index) const { - return data_filler_.Get(index); -} -inline ::caffe::FillerParameter* DummyDataParameter::mutable_data_filler(int index) { - return data_filler_.Mutable(index); -} -inline ::caffe::FillerParameter* DummyDataParameter::add_data_filler() { - return data_filler_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::FillerParameter >& -DummyDataParameter::data_filler() const { - return data_filler_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::FillerParameter >* -DummyDataParameter::mutable_data_filler() { - return &data_filler_; -} - -// repeated .caffe.BlobShape shape = 6; -inline int DummyDataParameter::shape_size() const { - return shape_.size(); -} -inline void DummyDataParameter::clear_shape() { - shape_.Clear(); -} -inline const ::caffe::BlobShape& DummyDataParameter::shape(int index) const { - return shape_.Get(index); -} -inline ::caffe::BlobShape* DummyDataParameter::mutable_shape(int index) { - return shape_.Mutable(index); -} -inline ::caffe::BlobShape* DummyDataParameter::add_shape() { - return shape_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobShape >& -DummyDataParameter::shape() const { - return shape_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobShape >* -DummyDataParameter::mutable_shape() { - return &shape_; -} - -// repeated uint32 num = 2; -inline int DummyDataParameter::num_size() const { - return num_.size(); -} -inline void DummyDataParameter::clear_num() { - num_.Clear(); -} -inline ::google::protobuf::uint32 DummyDataParameter::num(int index) const { - return num_.Get(index); -} -inline void DummyDataParameter::set_num(int index, ::google::protobuf::uint32 value) { - num_.Set(index, value); -} -inline void DummyDataParameter::add_num(::google::protobuf::uint32 value) { - num_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -DummyDataParameter::num() const { - return num_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -DummyDataParameter::mutable_num() { - return &num_; -} - -// repeated uint32 channels = 3; -inline int DummyDataParameter::channels_size() const { - return channels_.size(); -} -inline void DummyDataParameter::clear_channels() { - channels_.Clear(); -} -inline ::google::protobuf::uint32 DummyDataParameter::channels(int index) const { - return channels_.Get(index); -} -inline void DummyDataParameter::set_channels(int index, ::google::protobuf::uint32 value) { - channels_.Set(index, value); -} -inline void DummyDataParameter::add_channels(::google::protobuf::uint32 value) { - channels_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -DummyDataParameter::channels() const { - return channels_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -DummyDataParameter::mutable_channels() { - return &channels_; -} - -// repeated uint32 height = 4; -inline int DummyDataParameter::height_size() const { - return height_.size(); -} -inline void DummyDataParameter::clear_height() { - height_.Clear(); -} -inline ::google::protobuf::uint32 DummyDataParameter::height(int index) const { - return height_.Get(index); -} -inline void DummyDataParameter::set_height(int index, ::google::protobuf::uint32 value) { - height_.Set(index, value); -} -inline void DummyDataParameter::add_height(::google::protobuf::uint32 value) { - height_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -DummyDataParameter::height() const { - return height_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -DummyDataParameter::mutable_height() { - return &height_; -} - -// repeated uint32 width = 5; -inline int DummyDataParameter::width_size() const { - return width_.size(); -} -inline void DummyDataParameter::clear_width() { - width_.Clear(); -} -inline ::google::protobuf::uint32 DummyDataParameter::width(int index) const { - return width_.Get(index); -} -inline void DummyDataParameter::set_width(int index, ::google::protobuf::uint32 value) { - width_.Set(index, value); -} -inline void DummyDataParameter::add_width(::google::protobuf::uint32 value) { - width_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -DummyDataParameter::width() const { - return width_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -DummyDataParameter::mutable_width() { - return &width_; -} - -// ------------------------------------------------------------------- - -// EltwiseParameter - -// optional .caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM]; -inline bool EltwiseParameter::has_operation() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void EltwiseParameter::set_has_operation() { - _has_bits_[0] |= 0x00000001u; -} -inline void EltwiseParameter::clear_has_operation() { - _has_bits_[0] &= ~0x00000001u; -} -inline void EltwiseParameter::clear_operation() { - operation_ = 1; - clear_has_operation(); -} -inline ::caffe::EltwiseParameter_EltwiseOp EltwiseParameter::operation() const { - return static_cast< ::caffe::EltwiseParameter_EltwiseOp >(operation_); -} -inline void EltwiseParameter::set_operation(::caffe::EltwiseParameter_EltwiseOp value) { - assert(::caffe::EltwiseParameter_EltwiseOp_IsValid(value)); - set_has_operation(); - operation_ = value; -} - -// repeated float coeff = 2; -inline int EltwiseParameter::coeff_size() const { - return coeff_.size(); -} -inline void EltwiseParameter::clear_coeff() { - coeff_.Clear(); -} -inline float EltwiseParameter::coeff(int index) const { - return coeff_.Get(index); -} -inline void EltwiseParameter::set_coeff(int index, float value) { - coeff_.Set(index, value); -} -inline void EltwiseParameter::add_coeff(float value) { - coeff_.Add(value); -} -inline const ::google::protobuf::RepeatedField< float >& -EltwiseParameter::coeff() const { - return coeff_; -} -inline ::google::protobuf::RepeatedField< float >* -EltwiseParameter::mutable_coeff() { - return &coeff_; -} - -// optional bool stable_prod_grad = 3 [default = true]; -inline bool EltwiseParameter::has_stable_prod_grad() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void EltwiseParameter::set_has_stable_prod_grad() { - _has_bits_[0] |= 0x00000004u; -} -inline void EltwiseParameter::clear_has_stable_prod_grad() { - _has_bits_[0] &= ~0x00000004u; -} -inline void EltwiseParameter::clear_stable_prod_grad() { - stable_prod_grad_ = true; - clear_has_stable_prod_grad(); -} -inline bool EltwiseParameter::stable_prod_grad() const { - return stable_prod_grad_; -} -inline void EltwiseParameter::set_stable_prod_grad(bool value) { - set_has_stable_prod_grad(); - stable_prod_grad_ = value; -} - -// ------------------------------------------------------------------- - -// ExpParameter - -// optional float base = 1 [default = -1]; -inline bool ExpParameter::has_base() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ExpParameter::set_has_base() { - _has_bits_[0] |= 0x00000001u; -} -inline void ExpParameter::clear_has_base() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ExpParameter::clear_base() { - base_ = -1; - clear_has_base(); -} -inline float ExpParameter::base() const { - return base_; -} -inline void ExpParameter::set_base(float value) { - set_has_base(); - base_ = value; -} - -// optional float scale = 2 [default = 1]; -inline bool ExpParameter::has_scale() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ExpParameter::set_has_scale() { - _has_bits_[0] |= 0x00000002u; -} -inline void ExpParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000002u; -} -inline void ExpParameter::clear_scale() { - scale_ = 1; - clear_has_scale(); -} -inline float ExpParameter::scale() const { - return scale_; -} -inline void ExpParameter::set_scale(float value) { - set_has_scale(); - scale_ = value; -} - -// optional float shift = 3 [default = 0]; -inline bool ExpParameter::has_shift() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void ExpParameter::set_has_shift() { - _has_bits_[0] |= 0x00000004u; -} -inline void ExpParameter::clear_has_shift() { - _has_bits_[0] &= ~0x00000004u; -} -inline void ExpParameter::clear_shift() { - shift_ = 0; - clear_has_shift(); -} -inline float ExpParameter::shift() const { - return shift_; -} -inline void ExpParameter::set_shift(float value) { - set_has_shift(); - shift_ = value; -} - -// ------------------------------------------------------------------- - -// FlattenParameter - -// optional int32 axis = 1 [default = 1]; -inline bool FlattenParameter::has_axis() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void FlattenParameter::set_has_axis() { - _has_bits_[0] |= 0x00000001u; -} -inline void FlattenParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000001u; -} -inline void FlattenParameter::clear_axis() { - axis_ = 1; - clear_has_axis(); -} -inline ::google::protobuf::int32 FlattenParameter::axis() const { - return axis_; -} -inline void FlattenParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; -} - -// optional int32 end_axis = 2 [default = -1]; -inline bool FlattenParameter::has_end_axis() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void FlattenParameter::set_has_end_axis() { - _has_bits_[0] |= 0x00000002u; -} -inline void FlattenParameter::clear_has_end_axis() { - _has_bits_[0] &= ~0x00000002u; -} -inline void FlattenParameter::clear_end_axis() { - end_axis_ = -1; - clear_has_end_axis(); -} -inline ::google::protobuf::int32 FlattenParameter::end_axis() const { - return end_axis_; -} -inline void FlattenParameter::set_end_axis(::google::protobuf::int32 value) { - set_has_end_axis(); - end_axis_ = value; -} - -// ------------------------------------------------------------------- - -// HDF5DataParameter - -// optional string source = 1; -inline bool HDF5DataParameter::has_source() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void HDF5DataParameter::set_has_source() { - _has_bits_[0] |= 0x00000001u; -} -inline void HDF5DataParameter::clear_has_source() { - _has_bits_[0] &= ~0x00000001u; -} -inline void HDF5DataParameter::clear_source() { - if (source_ != &::google::protobuf::internal::kEmptyString) { - source_->clear(); - } - clear_has_source(); -} -inline const ::std::string& HDF5DataParameter::source() const { - return *source_; -} -inline void HDF5DataParameter::set_source(const ::std::string& value) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(value); -} -inline void HDF5DataParameter::set_source(const char* value) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(value); -} -inline void HDF5DataParameter::set_source(const char* value, size_t size) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(reinterpret_cast(value), size); -} -inline ::std::string* HDF5DataParameter::mutable_source() { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - return source_; -} -inline ::std::string* HDF5DataParameter::release_source() { - clear_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = source_; - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void HDF5DataParameter::set_allocated_source(::std::string* source) { - if (source_ != &::google::protobuf::internal::kEmptyString) { - delete source_; - } - if (source) { - set_has_source(); - source_ = source; - } else { - clear_has_source(); - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional uint32 batch_size = 2; -inline bool HDF5DataParameter::has_batch_size() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void HDF5DataParameter::set_has_batch_size() { - _has_bits_[0] |= 0x00000002u; -} -inline void HDF5DataParameter::clear_has_batch_size() { - _has_bits_[0] &= ~0x00000002u; -} -inline void HDF5DataParameter::clear_batch_size() { - batch_size_ = 0u; - clear_has_batch_size(); -} -inline ::google::protobuf::uint32 HDF5DataParameter::batch_size() const { - return batch_size_; -} -inline void HDF5DataParameter::set_batch_size(::google::protobuf::uint32 value) { - set_has_batch_size(); - batch_size_ = value; -} - -// optional bool shuffle = 3 [default = false]; -inline bool HDF5DataParameter::has_shuffle() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void HDF5DataParameter::set_has_shuffle() { - _has_bits_[0] |= 0x00000004u; -} -inline void HDF5DataParameter::clear_has_shuffle() { - _has_bits_[0] &= ~0x00000004u; -} -inline void HDF5DataParameter::clear_shuffle() { - shuffle_ = false; - clear_has_shuffle(); -} -inline bool HDF5DataParameter::shuffle() const { - return shuffle_; -} -inline void HDF5DataParameter::set_shuffle(bool value) { - set_has_shuffle(); - shuffle_ = value; -} - -// ------------------------------------------------------------------- - -// HDF5OutputParameter - -// optional string file_name = 1; -inline bool HDF5OutputParameter::has_file_name() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void HDF5OutputParameter::set_has_file_name() { - _has_bits_[0] |= 0x00000001u; -} -inline void HDF5OutputParameter::clear_has_file_name() { - _has_bits_[0] &= ~0x00000001u; -} -inline void HDF5OutputParameter::clear_file_name() { - if (file_name_ != &::google::protobuf::internal::kEmptyString) { - file_name_->clear(); - } - clear_has_file_name(); -} -inline const ::std::string& HDF5OutputParameter::file_name() const { - return *file_name_; -} -inline void HDF5OutputParameter::set_file_name(const ::std::string& value) { - set_has_file_name(); - if (file_name_ == &::google::protobuf::internal::kEmptyString) { - file_name_ = new ::std::string; - } - file_name_->assign(value); -} -inline void HDF5OutputParameter::set_file_name(const char* value) { - set_has_file_name(); - if (file_name_ == &::google::protobuf::internal::kEmptyString) { - file_name_ = new ::std::string; - } - file_name_->assign(value); -} -inline void HDF5OutputParameter::set_file_name(const char* value, size_t size) { - set_has_file_name(); - if (file_name_ == &::google::protobuf::internal::kEmptyString) { - file_name_ = new ::std::string; - } - file_name_->assign(reinterpret_cast(value), size); -} -inline ::std::string* HDF5OutputParameter::mutable_file_name() { - set_has_file_name(); - if (file_name_ == &::google::protobuf::internal::kEmptyString) { - file_name_ = new ::std::string; - } - return file_name_; -} -inline ::std::string* HDF5OutputParameter::release_file_name() { - clear_has_file_name(); - if (file_name_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = file_name_; - file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void HDF5OutputParameter::set_allocated_file_name(::std::string* file_name) { - if (file_name_ != &::google::protobuf::internal::kEmptyString) { - delete file_name_; - } - if (file_name) { - set_has_file_name(); - file_name_ = file_name; - } else { - clear_has_file_name(); - file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// ------------------------------------------------------------------- - -// HingeLossParameter - -// optional .caffe.HingeLossParameter.Norm norm = 1 [default = L1]; -inline bool HingeLossParameter::has_norm() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void HingeLossParameter::set_has_norm() { - _has_bits_[0] |= 0x00000001u; -} -inline void HingeLossParameter::clear_has_norm() { - _has_bits_[0] &= ~0x00000001u; -} -inline void HingeLossParameter::clear_norm() { - norm_ = 1; - clear_has_norm(); -} -inline ::caffe::HingeLossParameter_Norm HingeLossParameter::norm() const { - return static_cast< ::caffe::HingeLossParameter_Norm >(norm_); -} -inline void HingeLossParameter::set_norm(::caffe::HingeLossParameter_Norm value) { - assert(::caffe::HingeLossParameter_Norm_IsValid(value)); - set_has_norm(); - norm_ = value; -} - -// ------------------------------------------------------------------- - -// ImageDataParameter - -// optional string source = 1; -inline bool ImageDataParameter::has_source() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ImageDataParameter::set_has_source() { - _has_bits_[0] |= 0x00000001u; -} -inline void ImageDataParameter::clear_has_source() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ImageDataParameter::clear_source() { - if (source_ != &::google::protobuf::internal::kEmptyString) { - source_->clear(); - } - clear_has_source(); -} -inline const ::std::string& ImageDataParameter::source() const { - return *source_; -} -inline void ImageDataParameter::set_source(const ::std::string& value) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(value); -} -inline void ImageDataParameter::set_source(const char* value) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(value); -} -inline void ImageDataParameter::set_source(const char* value, size_t size) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(reinterpret_cast(value), size); -} -inline ::std::string* ImageDataParameter::mutable_source() { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - return source_; -} -inline ::std::string* ImageDataParameter::release_source() { - clear_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = source_; - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void ImageDataParameter::set_allocated_source(::std::string* source) { - if (source_ != &::google::protobuf::internal::kEmptyString) { - delete source_; - } - if (source) { - set_has_source(); - source_ = source; - } else { - clear_has_source(); - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional uint32 batch_size = 4; -inline bool ImageDataParameter::has_batch_size() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ImageDataParameter::set_has_batch_size() { - _has_bits_[0] |= 0x00000002u; -} -inline void ImageDataParameter::clear_has_batch_size() { - _has_bits_[0] &= ~0x00000002u; -} -inline void ImageDataParameter::clear_batch_size() { - batch_size_ = 0u; - clear_has_batch_size(); -} -inline ::google::protobuf::uint32 ImageDataParameter::batch_size() const { - return batch_size_; -} -inline void ImageDataParameter::set_batch_size(::google::protobuf::uint32 value) { - set_has_batch_size(); - batch_size_ = value; -} - -// optional uint32 rand_skip = 7 [default = 0]; -inline bool ImageDataParameter::has_rand_skip() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void ImageDataParameter::set_has_rand_skip() { - _has_bits_[0] |= 0x00000004u; -} -inline void ImageDataParameter::clear_has_rand_skip() { - _has_bits_[0] &= ~0x00000004u; -} -inline void ImageDataParameter::clear_rand_skip() { - rand_skip_ = 0u; - clear_has_rand_skip(); -} -inline ::google::protobuf::uint32 ImageDataParameter::rand_skip() const { - return rand_skip_; -} -inline void ImageDataParameter::set_rand_skip(::google::protobuf::uint32 value) { - set_has_rand_skip(); - rand_skip_ = value; -} - -// optional bool shuffle = 8 [default = false]; -inline bool ImageDataParameter::has_shuffle() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void ImageDataParameter::set_has_shuffle() { - _has_bits_[0] |= 0x00000008u; -} -inline void ImageDataParameter::clear_has_shuffle() { - _has_bits_[0] &= ~0x00000008u; -} -inline void ImageDataParameter::clear_shuffle() { - shuffle_ = false; - clear_has_shuffle(); -} -inline bool ImageDataParameter::shuffle() const { - return shuffle_; -} -inline void ImageDataParameter::set_shuffle(bool value) { - set_has_shuffle(); - shuffle_ = value; -} - -// optional uint32 new_height = 9 [default = 0]; -inline bool ImageDataParameter::has_new_height() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void ImageDataParameter::set_has_new_height() { - _has_bits_[0] |= 0x00000010u; -} -inline void ImageDataParameter::clear_has_new_height() { - _has_bits_[0] &= ~0x00000010u; -} -inline void ImageDataParameter::clear_new_height() { - new_height_ = 0u; - clear_has_new_height(); -} -inline ::google::protobuf::uint32 ImageDataParameter::new_height() const { - return new_height_; -} -inline void ImageDataParameter::set_new_height(::google::protobuf::uint32 value) { - set_has_new_height(); - new_height_ = value; -} - -// optional uint32 new_width = 10 [default = 0]; -inline bool ImageDataParameter::has_new_width() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void ImageDataParameter::set_has_new_width() { - _has_bits_[0] |= 0x00000020u; -} -inline void ImageDataParameter::clear_has_new_width() { - _has_bits_[0] &= ~0x00000020u; -} -inline void ImageDataParameter::clear_new_width() { - new_width_ = 0u; - clear_has_new_width(); -} -inline ::google::protobuf::uint32 ImageDataParameter::new_width() const { - return new_width_; -} -inline void ImageDataParameter::set_new_width(::google::protobuf::uint32 value) { - set_has_new_width(); - new_width_ = value; -} - -// optional bool is_color = 11 [default = true]; -inline bool ImageDataParameter::has_is_color() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void ImageDataParameter::set_has_is_color() { - _has_bits_[0] |= 0x00000040u; -} -inline void ImageDataParameter::clear_has_is_color() { - _has_bits_[0] &= ~0x00000040u; -} -inline void ImageDataParameter::clear_is_color() { - is_color_ = true; - clear_has_is_color(); -} -inline bool ImageDataParameter::is_color() const { - return is_color_; -} -inline void ImageDataParameter::set_is_color(bool value) { - set_has_is_color(); - is_color_ = value; -} - -// optional float scale = 2 [default = 1]; -inline bool ImageDataParameter::has_scale() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -inline void ImageDataParameter::set_has_scale() { - _has_bits_[0] |= 0x00000080u; -} -inline void ImageDataParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000080u; -} -inline void ImageDataParameter::clear_scale() { - scale_ = 1; - clear_has_scale(); -} -inline float ImageDataParameter::scale() const { - return scale_; -} -inline void ImageDataParameter::set_scale(float value) { - set_has_scale(); - scale_ = value; -} - -// optional string mean_file = 3; -inline bool ImageDataParameter::has_mean_file() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -inline void ImageDataParameter::set_has_mean_file() { - _has_bits_[0] |= 0x00000100u; -} -inline void ImageDataParameter::clear_has_mean_file() { - _has_bits_[0] &= ~0x00000100u; -} -inline void ImageDataParameter::clear_mean_file() { - if (mean_file_ != &::google::protobuf::internal::kEmptyString) { - mean_file_->clear(); - } - clear_has_mean_file(); -} -inline const ::std::string& ImageDataParameter::mean_file() const { - return *mean_file_; -} -inline void ImageDataParameter::set_mean_file(const ::std::string& value) { - set_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - mean_file_ = new ::std::string; - } - mean_file_->assign(value); -} -inline void ImageDataParameter::set_mean_file(const char* value) { - set_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - mean_file_ = new ::std::string; - } - mean_file_->assign(value); -} -inline void ImageDataParameter::set_mean_file(const char* value, size_t size) { - set_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - mean_file_ = new ::std::string; - } - mean_file_->assign(reinterpret_cast(value), size); -} -inline ::std::string* ImageDataParameter::mutable_mean_file() { - set_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - mean_file_ = new ::std::string; - } - return mean_file_; -} -inline ::std::string* ImageDataParameter::release_mean_file() { - clear_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = mean_file_; - mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void ImageDataParameter::set_allocated_mean_file(::std::string* mean_file) { - if (mean_file_ != &::google::protobuf::internal::kEmptyString) { - delete mean_file_; - } - if (mean_file) { - set_has_mean_file(); - mean_file_ = mean_file; - } else { - clear_has_mean_file(); - mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional uint32 crop_size = 5 [default = 0]; -inline bool ImageDataParameter::has_crop_size() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -inline void ImageDataParameter::set_has_crop_size() { - _has_bits_[0] |= 0x00000200u; -} -inline void ImageDataParameter::clear_has_crop_size() { - _has_bits_[0] &= ~0x00000200u; -} -inline void ImageDataParameter::clear_crop_size() { - crop_size_ = 0u; - clear_has_crop_size(); -} -inline ::google::protobuf::uint32 ImageDataParameter::crop_size() const { - return crop_size_; -} -inline void ImageDataParameter::set_crop_size(::google::protobuf::uint32 value) { - set_has_crop_size(); - crop_size_ = value; -} - -// optional bool mirror = 6 [default = false]; -inline bool ImageDataParameter::has_mirror() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -inline void ImageDataParameter::set_has_mirror() { - _has_bits_[0] |= 0x00000400u; -} -inline void ImageDataParameter::clear_has_mirror() { - _has_bits_[0] &= ~0x00000400u; -} -inline void ImageDataParameter::clear_mirror() { - mirror_ = false; - clear_has_mirror(); -} -inline bool ImageDataParameter::mirror() const { - return mirror_; -} -inline void ImageDataParameter::set_mirror(bool value) { - set_has_mirror(); - mirror_ = value; -} - -// optional string root_folder = 12 [default = ""]; -inline bool ImageDataParameter::has_root_folder() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -inline void ImageDataParameter::set_has_root_folder() { - _has_bits_[0] |= 0x00000800u; -} -inline void ImageDataParameter::clear_has_root_folder() { - _has_bits_[0] &= ~0x00000800u; -} -inline void ImageDataParameter::clear_root_folder() { - if (root_folder_ != &::google::protobuf::internal::kEmptyString) { - root_folder_->clear(); - } - clear_has_root_folder(); -} -inline const ::std::string& ImageDataParameter::root_folder() const { - return *root_folder_; -} -inline void ImageDataParameter::set_root_folder(const ::std::string& value) { - set_has_root_folder(); - if (root_folder_ == &::google::protobuf::internal::kEmptyString) { - root_folder_ = new ::std::string; - } - root_folder_->assign(value); -} -inline void ImageDataParameter::set_root_folder(const char* value) { - set_has_root_folder(); - if (root_folder_ == &::google::protobuf::internal::kEmptyString) { - root_folder_ = new ::std::string; - } - root_folder_->assign(value); -} -inline void ImageDataParameter::set_root_folder(const char* value, size_t size) { - set_has_root_folder(); - if (root_folder_ == &::google::protobuf::internal::kEmptyString) { - root_folder_ = new ::std::string; - } - root_folder_->assign(reinterpret_cast(value), size); -} -inline ::std::string* ImageDataParameter::mutable_root_folder() { - set_has_root_folder(); - if (root_folder_ == &::google::protobuf::internal::kEmptyString) { - root_folder_ = new ::std::string; - } - return root_folder_; -} -inline ::std::string* ImageDataParameter::release_root_folder() { - clear_has_root_folder(); - if (root_folder_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = root_folder_; - root_folder_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void ImageDataParameter::set_allocated_root_folder(::std::string* root_folder) { - if (root_folder_ != &::google::protobuf::internal::kEmptyString) { - delete root_folder_; - } - if (root_folder) { - set_has_root_folder(); - root_folder_ = root_folder; - } else { - clear_has_root_folder(); - root_folder_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// ------------------------------------------------------------------- - -// InfogainLossParameter - -// optional string source = 1; -inline bool InfogainLossParameter::has_source() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void InfogainLossParameter::set_has_source() { - _has_bits_[0] |= 0x00000001u; -} -inline void InfogainLossParameter::clear_has_source() { - _has_bits_[0] &= ~0x00000001u; -} -inline void InfogainLossParameter::clear_source() { - if (source_ != &::google::protobuf::internal::kEmptyString) { - source_->clear(); - } - clear_has_source(); -} -inline const ::std::string& InfogainLossParameter::source() const { - return *source_; -} -inline void InfogainLossParameter::set_source(const ::std::string& value) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(value); -} -inline void InfogainLossParameter::set_source(const char* value) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(value); -} -inline void InfogainLossParameter::set_source(const char* value, size_t size) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(reinterpret_cast(value), size); -} -inline ::std::string* InfogainLossParameter::mutable_source() { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - return source_; -} -inline ::std::string* InfogainLossParameter::release_source() { - clear_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = source_; - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void InfogainLossParameter::set_allocated_source(::std::string* source) { - if (source_ != &::google::protobuf::internal::kEmptyString) { - delete source_; - } - if (source) { - set_has_source(); - source_ = source; - } else { - clear_has_source(); - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// ------------------------------------------------------------------- - -// InnerProductParameter - -// optional uint32 num_output = 1; -inline bool InnerProductParameter::has_num_output() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void InnerProductParameter::set_has_num_output() { - _has_bits_[0] |= 0x00000001u; -} -inline void InnerProductParameter::clear_has_num_output() { - _has_bits_[0] &= ~0x00000001u; -} -inline void InnerProductParameter::clear_num_output() { - num_output_ = 0u; - clear_has_num_output(); -} -inline ::google::protobuf::uint32 InnerProductParameter::num_output() const { - return num_output_; -} -inline void InnerProductParameter::set_num_output(::google::protobuf::uint32 value) { - set_has_num_output(); - num_output_ = value; -} - -// optional bool bias_term = 2 [default = true]; -inline bool InnerProductParameter::has_bias_term() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void InnerProductParameter::set_has_bias_term() { - _has_bits_[0] |= 0x00000002u; -} -inline void InnerProductParameter::clear_has_bias_term() { - _has_bits_[0] &= ~0x00000002u; -} -inline void InnerProductParameter::clear_bias_term() { - bias_term_ = true; - clear_has_bias_term(); -} -inline bool InnerProductParameter::bias_term() const { - return bias_term_; -} -inline void InnerProductParameter::set_bias_term(bool value) { - set_has_bias_term(); - bias_term_ = value; -} - -// optional .caffe.FillerParameter weight_filler = 3; -inline bool InnerProductParameter::has_weight_filler() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void InnerProductParameter::set_has_weight_filler() { - _has_bits_[0] |= 0x00000004u; -} -inline void InnerProductParameter::clear_has_weight_filler() { - _has_bits_[0] &= ~0x00000004u; -} -inline void InnerProductParameter::clear_weight_filler() { - if (weight_filler_ != NULL) weight_filler_->::caffe::FillerParameter::Clear(); - clear_has_weight_filler(); -} -inline const ::caffe::FillerParameter& InnerProductParameter::weight_filler() const { - return weight_filler_ != NULL ? *weight_filler_ : *default_instance_->weight_filler_; -} -inline ::caffe::FillerParameter* InnerProductParameter::mutable_weight_filler() { - set_has_weight_filler(); - if (weight_filler_ == NULL) weight_filler_ = new ::caffe::FillerParameter; - return weight_filler_; -} -inline ::caffe::FillerParameter* InnerProductParameter::release_weight_filler() { - clear_has_weight_filler(); - ::caffe::FillerParameter* temp = weight_filler_; - weight_filler_ = NULL; - return temp; -} -inline void InnerProductParameter::set_allocated_weight_filler(::caffe::FillerParameter* weight_filler) { - delete weight_filler_; - weight_filler_ = weight_filler; - if (weight_filler) { - set_has_weight_filler(); - } else { - clear_has_weight_filler(); - } -} - -// optional .caffe.FillerParameter bias_filler = 4; -inline bool InnerProductParameter::has_bias_filler() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void InnerProductParameter::set_has_bias_filler() { - _has_bits_[0] |= 0x00000008u; -} -inline void InnerProductParameter::clear_has_bias_filler() { - _has_bits_[0] &= ~0x00000008u; -} -inline void InnerProductParameter::clear_bias_filler() { - if (bias_filler_ != NULL) bias_filler_->::caffe::FillerParameter::Clear(); - clear_has_bias_filler(); -} -inline const ::caffe::FillerParameter& InnerProductParameter::bias_filler() const { - return bias_filler_ != NULL ? *bias_filler_ : *default_instance_->bias_filler_; -} -inline ::caffe::FillerParameter* InnerProductParameter::mutable_bias_filler() { - set_has_bias_filler(); - if (bias_filler_ == NULL) bias_filler_ = new ::caffe::FillerParameter; - return bias_filler_; -} -inline ::caffe::FillerParameter* InnerProductParameter::release_bias_filler() { - clear_has_bias_filler(); - ::caffe::FillerParameter* temp = bias_filler_; - bias_filler_ = NULL; - return temp; -} -inline void InnerProductParameter::set_allocated_bias_filler(::caffe::FillerParameter* bias_filler) { - delete bias_filler_; - bias_filler_ = bias_filler; - if (bias_filler) { - set_has_bias_filler(); - } else { - clear_has_bias_filler(); - } -} - -// optional int32 axis = 5 [default = 1]; -inline bool InnerProductParameter::has_axis() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void InnerProductParameter::set_has_axis() { - _has_bits_[0] |= 0x00000010u; -} -inline void InnerProductParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000010u; -} -inline void InnerProductParameter::clear_axis() { - axis_ = 1; - clear_has_axis(); -} -inline ::google::protobuf::int32 InnerProductParameter::axis() const { - return axis_; -} -inline void InnerProductParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; -} - -// ------------------------------------------------------------------- - -// LogParameter - -// optional float base = 1 [default = -1]; -inline bool LogParameter::has_base() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void LogParameter::set_has_base() { - _has_bits_[0] |= 0x00000001u; -} -inline void LogParameter::clear_has_base() { - _has_bits_[0] &= ~0x00000001u; -} -inline void LogParameter::clear_base() { - base_ = -1; - clear_has_base(); -} -inline float LogParameter::base() const { - return base_; -} -inline void LogParameter::set_base(float value) { - set_has_base(); - base_ = value; -} - -// optional float scale = 2 [default = 1]; -inline bool LogParameter::has_scale() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void LogParameter::set_has_scale() { - _has_bits_[0] |= 0x00000002u; -} -inline void LogParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000002u; -} -inline void LogParameter::clear_scale() { - scale_ = 1; - clear_has_scale(); -} -inline float LogParameter::scale() const { - return scale_; -} -inline void LogParameter::set_scale(float value) { - set_has_scale(); - scale_ = value; -} - -// optional float shift = 3 [default = 0]; -inline bool LogParameter::has_shift() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void LogParameter::set_has_shift() { - _has_bits_[0] |= 0x00000004u; -} -inline void LogParameter::clear_has_shift() { - _has_bits_[0] &= ~0x00000004u; -} -inline void LogParameter::clear_shift() { - shift_ = 0; - clear_has_shift(); -} -inline float LogParameter::shift() const { - return shift_; -} -inline void LogParameter::set_shift(float value) { - set_has_shift(); - shift_ = value; -} - -// ------------------------------------------------------------------- - -// LRNParameter - -// optional uint32 local_size = 1 [default = 5]; -inline bool LRNParameter::has_local_size() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void LRNParameter::set_has_local_size() { - _has_bits_[0] |= 0x00000001u; -} -inline void LRNParameter::clear_has_local_size() { - _has_bits_[0] &= ~0x00000001u; -} -inline void LRNParameter::clear_local_size() { - local_size_ = 5u; - clear_has_local_size(); -} -inline ::google::protobuf::uint32 LRNParameter::local_size() const { - return local_size_; -} -inline void LRNParameter::set_local_size(::google::protobuf::uint32 value) { - set_has_local_size(); - local_size_ = value; -} - -// optional float alpha = 2 [default = 1]; -inline bool LRNParameter::has_alpha() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void LRNParameter::set_has_alpha() { - _has_bits_[0] |= 0x00000002u; -} -inline void LRNParameter::clear_has_alpha() { - _has_bits_[0] &= ~0x00000002u; -} -inline void LRNParameter::clear_alpha() { - alpha_ = 1; - clear_has_alpha(); -} -inline float LRNParameter::alpha() const { - return alpha_; -} -inline void LRNParameter::set_alpha(float value) { - set_has_alpha(); - alpha_ = value; -} - -// optional float beta = 3 [default = 0.75]; -inline bool LRNParameter::has_beta() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void LRNParameter::set_has_beta() { - _has_bits_[0] |= 0x00000004u; -} -inline void LRNParameter::clear_has_beta() { - _has_bits_[0] &= ~0x00000004u; -} -inline void LRNParameter::clear_beta() { - beta_ = 0.75f; - clear_has_beta(); -} -inline float LRNParameter::beta() const { - return beta_; -} -inline void LRNParameter::set_beta(float value) { - set_has_beta(); - beta_ = value; -} - -// optional .caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS]; -inline bool LRNParameter::has_norm_region() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void LRNParameter::set_has_norm_region() { - _has_bits_[0] |= 0x00000008u; -} -inline void LRNParameter::clear_has_norm_region() { - _has_bits_[0] &= ~0x00000008u; -} -inline void LRNParameter::clear_norm_region() { - norm_region_ = 0; - clear_has_norm_region(); -} -inline ::caffe::LRNParameter_NormRegion LRNParameter::norm_region() const { - return static_cast< ::caffe::LRNParameter_NormRegion >(norm_region_); -} -inline void LRNParameter::set_norm_region(::caffe::LRNParameter_NormRegion value) { - assert(::caffe::LRNParameter_NormRegion_IsValid(value)); - set_has_norm_region(); - norm_region_ = value; -} - -// optional float k = 5 [default = 1]; -inline bool LRNParameter::has_k() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void LRNParameter::set_has_k() { - _has_bits_[0] |= 0x00000010u; -} -inline void LRNParameter::clear_has_k() { - _has_bits_[0] &= ~0x00000010u; -} -inline void LRNParameter::clear_k() { - k_ = 1; - clear_has_k(); -} -inline float LRNParameter::k() const { - return k_; -} -inline void LRNParameter::set_k(float value) { - set_has_k(); - k_ = value; -} - -// ------------------------------------------------------------------- - -// MemoryDataParameter - -// optional uint32 batch_size = 1; -inline bool MemoryDataParameter::has_batch_size() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void MemoryDataParameter::set_has_batch_size() { - _has_bits_[0] |= 0x00000001u; -} -inline void MemoryDataParameter::clear_has_batch_size() { - _has_bits_[0] &= ~0x00000001u; -} -inline void MemoryDataParameter::clear_batch_size() { - batch_size_ = 0u; - clear_has_batch_size(); -} -inline ::google::protobuf::uint32 MemoryDataParameter::batch_size() const { - return batch_size_; -} -inline void MemoryDataParameter::set_batch_size(::google::protobuf::uint32 value) { - set_has_batch_size(); - batch_size_ = value; -} - -// optional uint32 channels = 2; -inline bool MemoryDataParameter::has_channels() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void MemoryDataParameter::set_has_channels() { - _has_bits_[0] |= 0x00000002u; -} -inline void MemoryDataParameter::clear_has_channels() { - _has_bits_[0] &= ~0x00000002u; -} -inline void MemoryDataParameter::clear_channels() { - channels_ = 0u; - clear_has_channels(); -} -inline ::google::protobuf::uint32 MemoryDataParameter::channels() const { - return channels_; -} -inline void MemoryDataParameter::set_channels(::google::protobuf::uint32 value) { - set_has_channels(); - channels_ = value; -} - -// optional uint32 height = 3; -inline bool MemoryDataParameter::has_height() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void MemoryDataParameter::set_has_height() { - _has_bits_[0] |= 0x00000004u; -} -inline void MemoryDataParameter::clear_has_height() { - _has_bits_[0] &= ~0x00000004u; -} -inline void MemoryDataParameter::clear_height() { - height_ = 0u; - clear_has_height(); -} -inline ::google::protobuf::uint32 MemoryDataParameter::height() const { - return height_; -} -inline void MemoryDataParameter::set_height(::google::protobuf::uint32 value) { - set_has_height(); - height_ = value; -} - -// optional uint32 width = 4; -inline bool MemoryDataParameter::has_width() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void MemoryDataParameter::set_has_width() { - _has_bits_[0] |= 0x00000008u; -} -inline void MemoryDataParameter::clear_has_width() { - _has_bits_[0] &= ~0x00000008u; -} -inline void MemoryDataParameter::clear_width() { - width_ = 0u; - clear_has_width(); -} -inline ::google::protobuf::uint32 MemoryDataParameter::width() const { - return width_; -} -inline void MemoryDataParameter::set_width(::google::protobuf::uint32 value) { - set_has_width(); - width_ = value; -} - -// ------------------------------------------------------------------- - -// MVNParameter - -// optional bool normalize_variance = 1 [default = true]; -inline bool MVNParameter::has_normalize_variance() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void MVNParameter::set_has_normalize_variance() { - _has_bits_[0] |= 0x00000001u; -} -inline void MVNParameter::clear_has_normalize_variance() { - _has_bits_[0] &= ~0x00000001u; -} -inline void MVNParameter::clear_normalize_variance() { - normalize_variance_ = true; - clear_has_normalize_variance(); -} -inline bool MVNParameter::normalize_variance() const { - return normalize_variance_; -} -inline void MVNParameter::set_normalize_variance(bool value) { - set_has_normalize_variance(); - normalize_variance_ = value; -} - -// optional bool across_channels = 2 [default = false]; -inline bool MVNParameter::has_across_channels() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void MVNParameter::set_has_across_channels() { - _has_bits_[0] |= 0x00000002u; -} -inline void MVNParameter::clear_has_across_channels() { - _has_bits_[0] &= ~0x00000002u; -} -inline void MVNParameter::clear_across_channels() { - across_channels_ = false; - clear_has_across_channels(); -} -inline bool MVNParameter::across_channels() const { - return across_channels_; -} -inline void MVNParameter::set_across_channels(bool value) { - set_has_across_channels(); - across_channels_ = value; -} - -// optional float eps = 3 [default = 1e-09]; -inline bool MVNParameter::has_eps() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void MVNParameter::set_has_eps() { - _has_bits_[0] |= 0x00000004u; -} -inline void MVNParameter::clear_has_eps() { - _has_bits_[0] &= ~0x00000004u; -} -inline void MVNParameter::clear_eps() { - eps_ = 1e-09f; - clear_has_eps(); -} -inline float MVNParameter::eps() const { - return eps_; -} -inline void MVNParameter::set_eps(float value) { - set_has_eps(); - eps_ = value; -} - -// ------------------------------------------------------------------- - -// PoolingParameter - -// optional .caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX]; -inline bool PoolingParameter::has_pool() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PoolingParameter::set_has_pool() { - _has_bits_[0] |= 0x00000001u; -} -inline void PoolingParameter::clear_has_pool() { - _has_bits_[0] &= ~0x00000001u; -} -inline void PoolingParameter::clear_pool() { - pool_ = 0; - clear_has_pool(); -} -inline ::caffe::PoolingParameter_PoolMethod PoolingParameter::pool() const { - return static_cast< ::caffe::PoolingParameter_PoolMethod >(pool_); -} -inline void PoolingParameter::set_pool(::caffe::PoolingParameter_PoolMethod value) { - assert(::caffe::PoolingParameter_PoolMethod_IsValid(value)); - set_has_pool(); - pool_ = value; -} - -// optional uint32 pad = 4 [default = 0]; -inline bool PoolingParameter::has_pad() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PoolingParameter::set_has_pad() { - _has_bits_[0] |= 0x00000002u; -} -inline void PoolingParameter::clear_has_pad() { - _has_bits_[0] &= ~0x00000002u; -} -inline void PoolingParameter::clear_pad() { - pad_ = 0u; - clear_has_pad(); -} -inline ::google::protobuf::uint32 PoolingParameter::pad() const { - return pad_; -} -inline void PoolingParameter::set_pad(::google::protobuf::uint32 value) { - set_has_pad(); - pad_ = value; -} - -// optional uint32 pad_h = 9 [default = 0]; -inline bool PoolingParameter::has_pad_h() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void PoolingParameter::set_has_pad_h() { - _has_bits_[0] |= 0x00000004u; -} -inline void PoolingParameter::clear_has_pad_h() { - _has_bits_[0] &= ~0x00000004u; -} -inline void PoolingParameter::clear_pad_h() { - pad_h_ = 0u; - clear_has_pad_h(); -} -inline ::google::protobuf::uint32 PoolingParameter::pad_h() const { - return pad_h_; -} -inline void PoolingParameter::set_pad_h(::google::protobuf::uint32 value) { - set_has_pad_h(); - pad_h_ = value; -} - -// optional uint32 pad_w = 10 [default = 0]; -inline bool PoolingParameter::has_pad_w() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void PoolingParameter::set_has_pad_w() { - _has_bits_[0] |= 0x00000008u; -} -inline void PoolingParameter::clear_has_pad_w() { - _has_bits_[0] &= ~0x00000008u; -} -inline void PoolingParameter::clear_pad_w() { - pad_w_ = 0u; - clear_has_pad_w(); -} -inline ::google::protobuf::uint32 PoolingParameter::pad_w() const { - return pad_w_; -} -inline void PoolingParameter::set_pad_w(::google::protobuf::uint32 value) { - set_has_pad_w(); - pad_w_ = value; -} - -// optional uint32 kernel_size = 2; -inline bool PoolingParameter::has_kernel_size() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void PoolingParameter::set_has_kernel_size() { - _has_bits_[0] |= 0x00000010u; -} -inline void PoolingParameter::clear_has_kernel_size() { - _has_bits_[0] &= ~0x00000010u; -} -inline void PoolingParameter::clear_kernel_size() { - kernel_size_ = 0u; - clear_has_kernel_size(); -} -inline ::google::protobuf::uint32 PoolingParameter::kernel_size() const { - return kernel_size_; -} -inline void PoolingParameter::set_kernel_size(::google::protobuf::uint32 value) { - set_has_kernel_size(); - kernel_size_ = value; -} - -// optional uint32 kernel_h = 5; -inline bool PoolingParameter::has_kernel_h() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void PoolingParameter::set_has_kernel_h() { - _has_bits_[0] |= 0x00000020u; -} -inline void PoolingParameter::clear_has_kernel_h() { - _has_bits_[0] &= ~0x00000020u; -} -inline void PoolingParameter::clear_kernel_h() { - kernel_h_ = 0u; - clear_has_kernel_h(); -} -inline ::google::protobuf::uint32 PoolingParameter::kernel_h() const { - return kernel_h_; -} -inline void PoolingParameter::set_kernel_h(::google::protobuf::uint32 value) { - set_has_kernel_h(); - kernel_h_ = value; -} - -// optional uint32 kernel_w = 6; -inline bool PoolingParameter::has_kernel_w() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void PoolingParameter::set_has_kernel_w() { - _has_bits_[0] |= 0x00000040u; -} -inline void PoolingParameter::clear_has_kernel_w() { - _has_bits_[0] &= ~0x00000040u; -} -inline void PoolingParameter::clear_kernel_w() { - kernel_w_ = 0u; - clear_has_kernel_w(); -} -inline ::google::protobuf::uint32 PoolingParameter::kernel_w() const { - return kernel_w_; -} -inline void PoolingParameter::set_kernel_w(::google::protobuf::uint32 value) { - set_has_kernel_w(); - kernel_w_ = value; -} - -// optional uint32 stride = 3 [default = 1]; -inline bool PoolingParameter::has_stride() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -inline void PoolingParameter::set_has_stride() { - _has_bits_[0] |= 0x00000080u; -} -inline void PoolingParameter::clear_has_stride() { - _has_bits_[0] &= ~0x00000080u; -} -inline void PoolingParameter::clear_stride() { - stride_ = 1u; - clear_has_stride(); -} -inline ::google::protobuf::uint32 PoolingParameter::stride() const { - return stride_; -} -inline void PoolingParameter::set_stride(::google::protobuf::uint32 value) { - set_has_stride(); - stride_ = value; -} - -// optional uint32 stride_h = 7; -inline bool PoolingParameter::has_stride_h() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -inline void PoolingParameter::set_has_stride_h() { - _has_bits_[0] |= 0x00000100u; -} -inline void PoolingParameter::clear_has_stride_h() { - _has_bits_[0] &= ~0x00000100u; -} -inline void PoolingParameter::clear_stride_h() { - stride_h_ = 0u; - clear_has_stride_h(); -} -inline ::google::protobuf::uint32 PoolingParameter::stride_h() const { - return stride_h_; -} -inline void PoolingParameter::set_stride_h(::google::protobuf::uint32 value) { - set_has_stride_h(); - stride_h_ = value; -} - -// optional uint32 stride_w = 8; -inline bool PoolingParameter::has_stride_w() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -inline void PoolingParameter::set_has_stride_w() { - _has_bits_[0] |= 0x00000200u; -} -inline void PoolingParameter::clear_has_stride_w() { - _has_bits_[0] &= ~0x00000200u; -} -inline void PoolingParameter::clear_stride_w() { - stride_w_ = 0u; - clear_has_stride_w(); -} -inline ::google::protobuf::uint32 PoolingParameter::stride_w() const { - return stride_w_; -} -inline void PoolingParameter::set_stride_w(::google::protobuf::uint32 value) { - set_has_stride_w(); - stride_w_ = value; -} - -// optional .caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT]; -inline bool PoolingParameter::has_engine() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -inline void PoolingParameter::set_has_engine() { - _has_bits_[0] |= 0x00000400u; -} -inline void PoolingParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00000400u; -} -inline void PoolingParameter::clear_engine() { - engine_ = 0; - clear_has_engine(); -} -inline ::caffe::PoolingParameter_Engine PoolingParameter::engine() const { - return static_cast< ::caffe::PoolingParameter_Engine >(engine_); -} -inline void PoolingParameter::set_engine(::caffe::PoolingParameter_Engine value) { - assert(::caffe::PoolingParameter_Engine_IsValid(value)); - set_has_engine(); - engine_ = value; -} - -// optional bool global_pooling = 12 [default = false]; -inline bool PoolingParameter::has_global_pooling() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -inline void PoolingParameter::set_has_global_pooling() { - _has_bits_[0] |= 0x00000800u; -} -inline void PoolingParameter::clear_has_global_pooling() { - _has_bits_[0] &= ~0x00000800u; -} -inline void PoolingParameter::clear_global_pooling() { - global_pooling_ = false; - clear_has_global_pooling(); -} -inline bool PoolingParameter::global_pooling() const { - return global_pooling_; -} -inline void PoolingParameter::set_global_pooling(bool value) { - set_has_global_pooling(); - global_pooling_ = value; -} - -// ------------------------------------------------------------------- - -// PowerParameter - -// optional float power = 1 [default = 1]; -inline bool PowerParameter::has_power() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PowerParameter::set_has_power() { - _has_bits_[0] |= 0x00000001u; -} -inline void PowerParameter::clear_has_power() { - _has_bits_[0] &= ~0x00000001u; -} -inline void PowerParameter::clear_power() { - power_ = 1; - clear_has_power(); -} -inline float PowerParameter::power() const { - return power_; -} -inline void PowerParameter::set_power(float value) { - set_has_power(); - power_ = value; -} - -// optional float scale = 2 [default = 1]; -inline bool PowerParameter::has_scale() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PowerParameter::set_has_scale() { - _has_bits_[0] |= 0x00000002u; -} -inline void PowerParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000002u; -} -inline void PowerParameter::clear_scale() { - scale_ = 1; - clear_has_scale(); -} -inline float PowerParameter::scale() const { - return scale_; -} -inline void PowerParameter::set_scale(float value) { - set_has_scale(); - scale_ = value; -} - -// optional float shift = 3 [default = 0]; -inline bool PowerParameter::has_shift() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void PowerParameter::set_has_shift() { - _has_bits_[0] |= 0x00000004u; -} -inline void PowerParameter::clear_has_shift() { - _has_bits_[0] &= ~0x00000004u; -} -inline void PowerParameter::clear_shift() { - shift_ = 0; - clear_has_shift(); -} -inline float PowerParameter::shift() const { - return shift_; -} -inline void PowerParameter::set_shift(float value) { - set_has_shift(); - shift_ = value; -} - -// ------------------------------------------------------------------- - -// PythonParameter - -// optional string module = 1; -inline bool PythonParameter::has_module() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PythonParameter::set_has_module() { - _has_bits_[0] |= 0x00000001u; -} -inline void PythonParameter::clear_has_module() { - _has_bits_[0] &= ~0x00000001u; -} -inline void PythonParameter::clear_module() { - if (module_ != &::google::protobuf::internal::kEmptyString) { - module_->clear(); - } - clear_has_module(); -} -inline const ::std::string& PythonParameter::module() const { - return *module_; -} -inline void PythonParameter::set_module(const ::std::string& value) { - set_has_module(); - if (module_ == &::google::protobuf::internal::kEmptyString) { - module_ = new ::std::string; - } - module_->assign(value); -} -inline void PythonParameter::set_module(const char* value) { - set_has_module(); - if (module_ == &::google::protobuf::internal::kEmptyString) { - module_ = new ::std::string; - } - module_->assign(value); -} -inline void PythonParameter::set_module(const char* value, size_t size) { - set_has_module(); - if (module_ == &::google::protobuf::internal::kEmptyString) { - module_ = new ::std::string; - } - module_->assign(reinterpret_cast(value), size); -} -inline ::std::string* PythonParameter::mutable_module() { - set_has_module(); - if (module_ == &::google::protobuf::internal::kEmptyString) { - module_ = new ::std::string; - } - return module_; -} -inline ::std::string* PythonParameter::release_module() { - clear_has_module(); - if (module_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = module_; - module_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void PythonParameter::set_allocated_module(::std::string* module) { - if (module_ != &::google::protobuf::internal::kEmptyString) { - delete module_; - } - if (module) { - set_has_module(); - module_ = module; - } else { - clear_has_module(); - module_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional string layer = 2; -inline bool PythonParameter::has_layer() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PythonParameter::set_has_layer() { - _has_bits_[0] |= 0x00000002u; -} -inline void PythonParameter::clear_has_layer() { - _has_bits_[0] &= ~0x00000002u; -} -inline void PythonParameter::clear_layer() { - if (layer_ != &::google::protobuf::internal::kEmptyString) { - layer_->clear(); - } - clear_has_layer(); -} -inline const ::std::string& PythonParameter::layer() const { - return *layer_; -} -inline void PythonParameter::set_layer(const ::std::string& value) { - set_has_layer(); - if (layer_ == &::google::protobuf::internal::kEmptyString) { - layer_ = new ::std::string; - } - layer_->assign(value); -} -inline void PythonParameter::set_layer(const char* value) { - set_has_layer(); - if (layer_ == &::google::protobuf::internal::kEmptyString) { - layer_ = new ::std::string; - } - layer_->assign(value); -} -inline void PythonParameter::set_layer(const char* value, size_t size) { - set_has_layer(); - if (layer_ == &::google::protobuf::internal::kEmptyString) { - layer_ = new ::std::string; - } - layer_->assign(reinterpret_cast(value), size); -} -inline ::std::string* PythonParameter::mutable_layer() { - set_has_layer(); - if (layer_ == &::google::protobuf::internal::kEmptyString) { - layer_ = new ::std::string; - } - return layer_; -} -inline ::std::string* PythonParameter::release_layer() { - clear_has_layer(); - if (layer_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = layer_; - layer_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void PythonParameter::set_allocated_layer(::std::string* layer) { - if (layer_ != &::google::protobuf::internal::kEmptyString) { - delete layer_; - } - if (layer) { - set_has_layer(); - layer_ = layer; - } else { - clear_has_layer(); - layer_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// ------------------------------------------------------------------- - -// ReductionParameter - -// optional .caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM]; -inline bool ReductionParameter::has_operation() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ReductionParameter::set_has_operation() { - _has_bits_[0] |= 0x00000001u; -} -inline void ReductionParameter::clear_has_operation() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ReductionParameter::clear_operation() { - operation_ = 1; - clear_has_operation(); -} -inline ::caffe::ReductionParameter_ReductionOp ReductionParameter::operation() const { - return static_cast< ::caffe::ReductionParameter_ReductionOp >(operation_); -} -inline void ReductionParameter::set_operation(::caffe::ReductionParameter_ReductionOp value) { - assert(::caffe::ReductionParameter_ReductionOp_IsValid(value)); - set_has_operation(); - operation_ = value; -} - -// optional int32 axis = 2 [default = 0]; -inline bool ReductionParameter::has_axis() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ReductionParameter::set_has_axis() { - _has_bits_[0] |= 0x00000002u; -} -inline void ReductionParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000002u; -} -inline void ReductionParameter::clear_axis() { - axis_ = 0; - clear_has_axis(); -} -inline ::google::protobuf::int32 ReductionParameter::axis() const { - return axis_; -} -inline void ReductionParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; -} - -// optional float coeff = 3 [default = 1]; -inline bool ReductionParameter::has_coeff() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void ReductionParameter::set_has_coeff() { - _has_bits_[0] |= 0x00000004u; -} -inline void ReductionParameter::clear_has_coeff() { - _has_bits_[0] &= ~0x00000004u; -} -inline void ReductionParameter::clear_coeff() { - coeff_ = 1; - clear_has_coeff(); -} -inline float ReductionParameter::coeff() const { - return coeff_; -} -inline void ReductionParameter::set_coeff(float value) { - set_has_coeff(); - coeff_ = value; -} - -// ------------------------------------------------------------------- - -// ReLUParameter - -// optional float negative_slope = 1 [default = 0]; -inline bool ReLUParameter::has_negative_slope() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ReLUParameter::set_has_negative_slope() { - _has_bits_[0] |= 0x00000001u; -} -inline void ReLUParameter::clear_has_negative_slope() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ReLUParameter::clear_negative_slope() { - negative_slope_ = 0; - clear_has_negative_slope(); -} -inline float ReLUParameter::negative_slope() const { - return negative_slope_; -} -inline void ReLUParameter::set_negative_slope(float value) { - set_has_negative_slope(); - negative_slope_ = value; -} - -// optional .caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT]; -inline bool ReLUParameter::has_engine() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ReLUParameter::set_has_engine() { - _has_bits_[0] |= 0x00000002u; -} -inline void ReLUParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00000002u; -} -inline void ReLUParameter::clear_engine() { - engine_ = 0; - clear_has_engine(); -} -inline ::caffe::ReLUParameter_Engine ReLUParameter::engine() const { - return static_cast< ::caffe::ReLUParameter_Engine >(engine_); -} -inline void ReLUParameter::set_engine(::caffe::ReLUParameter_Engine value) { - assert(::caffe::ReLUParameter_Engine_IsValid(value)); - set_has_engine(); - engine_ = value; -} - -// ------------------------------------------------------------------- - -// ReshapeParameter - -// optional .caffe.BlobShape shape = 1; -inline bool ReshapeParameter::has_shape() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ReshapeParameter::set_has_shape() { - _has_bits_[0] |= 0x00000001u; -} -inline void ReshapeParameter::clear_has_shape() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ReshapeParameter::clear_shape() { - if (shape_ != NULL) shape_->::caffe::BlobShape::Clear(); - clear_has_shape(); -} -inline const ::caffe::BlobShape& ReshapeParameter::shape() const { - return shape_ != NULL ? *shape_ : *default_instance_->shape_; -} -inline ::caffe::BlobShape* ReshapeParameter::mutable_shape() { - set_has_shape(); - if (shape_ == NULL) shape_ = new ::caffe::BlobShape; - return shape_; -} -inline ::caffe::BlobShape* ReshapeParameter::release_shape() { - clear_has_shape(); - ::caffe::BlobShape* temp = shape_; - shape_ = NULL; - return temp; -} -inline void ReshapeParameter::set_allocated_shape(::caffe::BlobShape* shape) { - delete shape_; - shape_ = shape; - if (shape) { - set_has_shape(); - } else { - clear_has_shape(); - } -} - -// optional int32 axis = 2 [default = 0]; -inline bool ReshapeParameter::has_axis() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ReshapeParameter::set_has_axis() { - _has_bits_[0] |= 0x00000002u; -} -inline void ReshapeParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000002u; -} -inline void ReshapeParameter::clear_axis() { - axis_ = 0; - clear_has_axis(); -} -inline ::google::protobuf::int32 ReshapeParameter::axis() const { - return axis_; -} -inline void ReshapeParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; -} - -// optional int32 num_axes = 3 [default = -1]; -inline bool ReshapeParameter::has_num_axes() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void ReshapeParameter::set_has_num_axes() { - _has_bits_[0] |= 0x00000004u; -} -inline void ReshapeParameter::clear_has_num_axes() { - _has_bits_[0] &= ~0x00000004u; -} -inline void ReshapeParameter::clear_num_axes() { - num_axes_ = -1; - clear_has_num_axes(); -} -inline ::google::protobuf::int32 ReshapeParameter::num_axes() const { - return num_axes_; -} -inline void ReshapeParameter::set_num_axes(::google::protobuf::int32 value) { - set_has_num_axes(); - num_axes_ = value; -} - -// ------------------------------------------------------------------- - -// SigmoidParameter - -// optional .caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT]; -inline bool SigmoidParameter::has_engine() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void SigmoidParameter::set_has_engine() { - _has_bits_[0] |= 0x00000001u; -} -inline void SigmoidParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00000001u; -} -inline void SigmoidParameter::clear_engine() { - engine_ = 0; - clear_has_engine(); -} -inline ::caffe::SigmoidParameter_Engine SigmoidParameter::engine() const { - return static_cast< ::caffe::SigmoidParameter_Engine >(engine_); -} -inline void SigmoidParameter::set_engine(::caffe::SigmoidParameter_Engine value) { - assert(::caffe::SigmoidParameter_Engine_IsValid(value)); - set_has_engine(); - engine_ = value; -} - -// ------------------------------------------------------------------- - -// SliceParameter - -// optional int32 axis = 3 [default = 1]; -inline bool SliceParameter::has_axis() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void SliceParameter::set_has_axis() { - _has_bits_[0] |= 0x00000001u; -} -inline void SliceParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000001u; -} -inline void SliceParameter::clear_axis() { - axis_ = 1; - clear_has_axis(); -} -inline ::google::protobuf::int32 SliceParameter::axis() const { - return axis_; -} -inline void SliceParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; -} - -// repeated uint32 slice_point = 2; -inline int SliceParameter::slice_point_size() const { - return slice_point_.size(); -} -inline void SliceParameter::clear_slice_point() { - slice_point_.Clear(); -} -inline ::google::protobuf::uint32 SliceParameter::slice_point(int index) const { - return slice_point_.Get(index); -} -inline void SliceParameter::set_slice_point(int index, ::google::protobuf::uint32 value) { - slice_point_.Set(index, value); -} -inline void SliceParameter::add_slice_point(::google::protobuf::uint32 value) { - slice_point_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -SliceParameter::slice_point() const { - return slice_point_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -SliceParameter::mutable_slice_point() { - return &slice_point_; -} - -// optional uint32 slice_dim = 1 [default = 1]; -inline bool SliceParameter::has_slice_dim() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void SliceParameter::set_has_slice_dim() { - _has_bits_[0] |= 0x00000004u; -} -inline void SliceParameter::clear_has_slice_dim() { - _has_bits_[0] &= ~0x00000004u; -} -inline void SliceParameter::clear_slice_dim() { - slice_dim_ = 1u; - clear_has_slice_dim(); -} -inline ::google::protobuf::uint32 SliceParameter::slice_dim() const { - return slice_dim_; -} -inline void SliceParameter::set_slice_dim(::google::protobuf::uint32 value) { - set_has_slice_dim(); - slice_dim_ = value; -} - -// ------------------------------------------------------------------- - -// SoftmaxParameter - -// optional .caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT]; -inline bool SoftmaxParameter::has_engine() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void SoftmaxParameter::set_has_engine() { - _has_bits_[0] |= 0x00000001u; -} -inline void SoftmaxParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00000001u; -} -inline void SoftmaxParameter::clear_engine() { - engine_ = 0; - clear_has_engine(); -} -inline ::caffe::SoftmaxParameter_Engine SoftmaxParameter::engine() const { - return static_cast< ::caffe::SoftmaxParameter_Engine >(engine_); -} -inline void SoftmaxParameter::set_engine(::caffe::SoftmaxParameter_Engine value) { - assert(::caffe::SoftmaxParameter_Engine_IsValid(value)); - set_has_engine(); - engine_ = value; -} - -// optional int32 axis = 2 [default = 1]; -inline bool SoftmaxParameter::has_axis() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void SoftmaxParameter::set_has_axis() { - _has_bits_[0] |= 0x00000002u; -} -inline void SoftmaxParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000002u; -} -inline void SoftmaxParameter::clear_axis() { - axis_ = 1; - clear_has_axis(); -} -inline ::google::protobuf::int32 SoftmaxParameter::axis() const { - return axis_; -} -inline void SoftmaxParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; -} - -// ------------------------------------------------------------------- - -// TanHParameter - -// optional .caffe.TanHParameter.Engine engine = 1 [default = DEFAULT]; -inline bool TanHParameter::has_engine() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void TanHParameter::set_has_engine() { - _has_bits_[0] |= 0x00000001u; -} -inline void TanHParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00000001u; -} -inline void TanHParameter::clear_engine() { - engine_ = 0; - clear_has_engine(); -} -inline ::caffe::TanHParameter_Engine TanHParameter::engine() const { - return static_cast< ::caffe::TanHParameter_Engine >(engine_); -} -inline void TanHParameter::set_engine(::caffe::TanHParameter_Engine value) { - assert(::caffe::TanHParameter_Engine_IsValid(value)); - set_has_engine(); - engine_ = value; -} - -// ------------------------------------------------------------------- - -// ThresholdParameter - -// optional float threshold = 1 [default = 0]; -inline bool ThresholdParameter::has_threshold() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ThresholdParameter::set_has_threshold() { - _has_bits_[0] |= 0x00000001u; -} -inline void ThresholdParameter::clear_has_threshold() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ThresholdParameter::clear_threshold() { - threshold_ = 0; - clear_has_threshold(); -} -inline float ThresholdParameter::threshold() const { - return threshold_; -} -inline void ThresholdParameter::set_threshold(float value) { - set_has_threshold(); - threshold_ = value; -} - -// ------------------------------------------------------------------- - -// WindowDataParameter - -// optional string source = 1; -inline bool WindowDataParameter::has_source() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void WindowDataParameter::set_has_source() { - _has_bits_[0] |= 0x00000001u; -} -inline void WindowDataParameter::clear_has_source() { - _has_bits_[0] &= ~0x00000001u; -} -inline void WindowDataParameter::clear_source() { - if (source_ != &::google::protobuf::internal::kEmptyString) { - source_->clear(); - } - clear_has_source(); -} -inline const ::std::string& WindowDataParameter::source() const { - return *source_; -} -inline void WindowDataParameter::set_source(const ::std::string& value) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(value); -} -inline void WindowDataParameter::set_source(const char* value) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(value); -} -inline void WindowDataParameter::set_source(const char* value, size_t size) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(reinterpret_cast(value), size); -} -inline ::std::string* WindowDataParameter::mutable_source() { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - return source_; -} -inline ::std::string* WindowDataParameter::release_source() { - clear_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = source_; - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void WindowDataParameter::set_allocated_source(::std::string* source) { - if (source_ != &::google::protobuf::internal::kEmptyString) { - delete source_; - } - if (source) { - set_has_source(); - source_ = source; - } else { - clear_has_source(); - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional float scale = 2 [default = 1]; -inline bool WindowDataParameter::has_scale() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void WindowDataParameter::set_has_scale() { - _has_bits_[0] |= 0x00000002u; -} -inline void WindowDataParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000002u; -} -inline void WindowDataParameter::clear_scale() { - scale_ = 1; - clear_has_scale(); -} -inline float WindowDataParameter::scale() const { - return scale_; -} -inline void WindowDataParameter::set_scale(float value) { - set_has_scale(); - scale_ = value; -} - -// optional string mean_file = 3; -inline bool WindowDataParameter::has_mean_file() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void WindowDataParameter::set_has_mean_file() { - _has_bits_[0] |= 0x00000004u; -} -inline void WindowDataParameter::clear_has_mean_file() { - _has_bits_[0] &= ~0x00000004u; -} -inline void WindowDataParameter::clear_mean_file() { - if (mean_file_ != &::google::protobuf::internal::kEmptyString) { - mean_file_->clear(); - } - clear_has_mean_file(); -} -inline const ::std::string& WindowDataParameter::mean_file() const { - return *mean_file_; -} -inline void WindowDataParameter::set_mean_file(const ::std::string& value) { - set_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - mean_file_ = new ::std::string; - } - mean_file_->assign(value); -} -inline void WindowDataParameter::set_mean_file(const char* value) { - set_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - mean_file_ = new ::std::string; - } - mean_file_->assign(value); -} -inline void WindowDataParameter::set_mean_file(const char* value, size_t size) { - set_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - mean_file_ = new ::std::string; - } - mean_file_->assign(reinterpret_cast(value), size); -} -inline ::std::string* WindowDataParameter::mutable_mean_file() { - set_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - mean_file_ = new ::std::string; - } - return mean_file_; -} -inline ::std::string* WindowDataParameter::release_mean_file() { - clear_has_mean_file(); - if (mean_file_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = mean_file_; - mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void WindowDataParameter::set_allocated_mean_file(::std::string* mean_file) { - if (mean_file_ != &::google::protobuf::internal::kEmptyString) { - delete mean_file_; - } - if (mean_file) { - set_has_mean_file(); - mean_file_ = mean_file; - } else { - clear_has_mean_file(); - mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional uint32 batch_size = 4; -inline bool WindowDataParameter::has_batch_size() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void WindowDataParameter::set_has_batch_size() { - _has_bits_[0] |= 0x00000008u; -} -inline void WindowDataParameter::clear_has_batch_size() { - _has_bits_[0] &= ~0x00000008u; -} -inline void WindowDataParameter::clear_batch_size() { - batch_size_ = 0u; - clear_has_batch_size(); -} -inline ::google::protobuf::uint32 WindowDataParameter::batch_size() const { - return batch_size_; -} -inline void WindowDataParameter::set_batch_size(::google::protobuf::uint32 value) { - set_has_batch_size(); - batch_size_ = value; -} - -// optional uint32 crop_size = 5 [default = 0]; -inline bool WindowDataParameter::has_crop_size() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void WindowDataParameter::set_has_crop_size() { - _has_bits_[0] |= 0x00000010u; -} -inline void WindowDataParameter::clear_has_crop_size() { - _has_bits_[0] &= ~0x00000010u; -} -inline void WindowDataParameter::clear_crop_size() { - crop_size_ = 0u; - clear_has_crop_size(); -} -inline ::google::protobuf::uint32 WindowDataParameter::crop_size() const { - return crop_size_; -} -inline void WindowDataParameter::set_crop_size(::google::protobuf::uint32 value) { - set_has_crop_size(); - crop_size_ = value; -} - -// optional bool mirror = 6 [default = false]; -inline bool WindowDataParameter::has_mirror() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void WindowDataParameter::set_has_mirror() { - _has_bits_[0] |= 0x00000020u; -} -inline void WindowDataParameter::clear_has_mirror() { - _has_bits_[0] &= ~0x00000020u; -} -inline void WindowDataParameter::clear_mirror() { - mirror_ = false; - clear_has_mirror(); -} -inline bool WindowDataParameter::mirror() const { - return mirror_; -} -inline void WindowDataParameter::set_mirror(bool value) { - set_has_mirror(); - mirror_ = value; -} - -// optional float fg_threshold = 7 [default = 0.5]; -inline bool WindowDataParameter::has_fg_threshold() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void WindowDataParameter::set_has_fg_threshold() { - _has_bits_[0] |= 0x00000040u; -} -inline void WindowDataParameter::clear_has_fg_threshold() { - _has_bits_[0] &= ~0x00000040u; -} -inline void WindowDataParameter::clear_fg_threshold() { - fg_threshold_ = 0.5f; - clear_has_fg_threshold(); -} -inline float WindowDataParameter::fg_threshold() const { - return fg_threshold_; -} -inline void WindowDataParameter::set_fg_threshold(float value) { - set_has_fg_threshold(); - fg_threshold_ = value; -} - -// optional float bg_threshold = 8 [default = 0.5]; -inline bool WindowDataParameter::has_bg_threshold() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -inline void WindowDataParameter::set_has_bg_threshold() { - _has_bits_[0] |= 0x00000080u; -} -inline void WindowDataParameter::clear_has_bg_threshold() { - _has_bits_[0] &= ~0x00000080u; -} -inline void WindowDataParameter::clear_bg_threshold() { - bg_threshold_ = 0.5f; - clear_has_bg_threshold(); -} -inline float WindowDataParameter::bg_threshold() const { - return bg_threshold_; -} -inline void WindowDataParameter::set_bg_threshold(float value) { - set_has_bg_threshold(); - bg_threshold_ = value; -} - -// optional float fg_fraction = 9 [default = 0.25]; -inline bool WindowDataParameter::has_fg_fraction() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -inline void WindowDataParameter::set_has_fg_fraction() { - _has_bits_[0] |= 0x00000100u; -} -inline void WindowDataParameter::clear_has_fg_fraction() { - _has_bits_[0] &= ~0x00000100u; -} -inline void WindowDataParameter::clear_fg_fraction() { - fg_fraction_ = 0.25f; - clear_has_fg_fraction(); -} -inline float WindowDataParameter::fg_fraction() const { - return fg_fraction_; -} -inline void WindowDataParameter::set_fg_fraction(float value) { - set_has_fg_fraction(); - fg_fraction_ = value; -} - -// optional uint32 context_pad = 10 [default = 0]; -inline bool WindowDataParameter::has_context_pad() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -inline void WindowDataParameter::set_has_context_pad() { - _has_bits_[0] |= 0x00000200u; -} -inline void WindowDataParameter::clear_has_context_pad() { - _has_bits_[0] &= ~0x00000200u; -} -inline void WindowDataParameter::clear_context_pad() { - context_pad_ = 0u; - clear_has_context_pad(); -} -inline ::google::protobuf::uint32 WindowDataParameter::context_pad() const { - return context_pad_; -} -inline void WindowDataParameter::set_context_pad(::google::protobuf::uint32 value) { - set_has_context_pad(); - context_pad_ = value; -} - -// optional string crop_mode = 11 [default = "warp"]; -inline bool WindowDataParameter::has_crop_mode() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -inline void WindowDataParameter::set_has_crop_mode() { - _has_bits_[0] |= 0x00000400u; -} -inline void WindowDataParameter::clear_has_crop_mode() { - _has_bits_[0] &= ~0x00000400u; -} -inline void WindowDataParameter::clear_crop_mode() { - if (crop_mode_ != _default_crop_mode_) { - crop_mode_->assign(*_default_crop_mode_); - } - clear_has_crop_mode(); -} -inline const ::std::string& WindowDataParameter::crop_mode() const { - return *crop_mode_; -} -inline void WindowDataParameter::set_crop_mode(const ::std::string& value) { - set_has_crop_mode(); - if (crop_mode_ == _default_crop_mode_) { - crop_mode_ = new ::std::string; - } - crop_mode_->assign(value); -} -inline void WindowDataParameter::set_crop_mode(const char* value) { - set_has_crop_mode(); - if (crop_mode_ == _default_crop_mode_) { - crop_mode_ = new ::std::string; - } - crop_mode_->assign(value); -} -inline void WindowDataParameter::set_crop_mode(const char* value, size_t size) { - set_has_crop_mode(); - if (crop_mode_ == _default_crop_mode_) { - crop_mode_ = new ::std::string; - } - crop_mode_->assign(reinterpret_cast(value), size); -} -inline ::std::string* WindowDataParameter::mutable_crop_mode() { - set_has_crop_mode(); - if (crop_mode_ == _default_crop_mode_) { - crop_mode_ = new ::std::string(*_default_crop_mode_); - } - return crop_mode_; -} -inline ::std::string* WindowDataParameter::release_crop_mode() { - clear_has_crop_mode(); - if (crop_mode_ == _default_crop_mode_) { - return NULL; - } else { - ::std::string* temp = crop_mode_; - crop_mode_ = const_cast< ::std::string*>(_default_crop_mode_); - return temp; - } -} -inline void WindowDataParameter::set_allocated_crop_mode(::std::string* crop_mode) { - if (crop_mode_ != _default_crop_mode_) { - delete crop_mode_; - } - if (crop_mode) { - set_has_crop_mode(); - crop_mode_ = crop_mode; - } else { - clear_has_crop_mode(); - crop_mode_ = const_cast< ::std::string*>(_default_crop_mode_); - } -} - -// optional bool cache_images = 12 [default = false]; -inline bool WindowDataParameter::has_cache_images() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -inline void WindowDataParameter::set_has_cache_images() { - _has_bits_[0] |= 0x00000800u; -} -inline void WindowDataParameter::clear_has_cache_images() { - _has_bits_[0] &= ~0x00000800u; -} -inline void WindowDataParameter::clear_cache_images() { - cache_images_ = false; - clear_has_cache_images(); -} -inline bool WindowDataParameter::cache_images() const { - return cache_images_; -} -inline void WindowDataParameter::set_cache_images(bool value) { - set_has_cache_images(); - cache_images_ = value; -} - -// optional string root_folder = 13 [default = ""]; -inline bool WindowDataParameter::has_root_folder() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -inline void WindowDataParameter::set_has_root_folder() { - _has_bits_[0] |= 0x00001000u; -} -inline void WindowDataParameter::clear_has_root_folder() { - _has_bits_[0] &= ~0x00001000u; -} -inline void WindowDataParameter::clear_root_folder() { - if (root_folder_ != &::google::protobuf::internal::kEmptyString) { - root_folder_->clear(); - } - clear_has_root_folder(); -} -inline const ::std::string& WindowDataParameter::root_folder() const { - return *root_folder_; -} -inline void WindowDataParameter::set_root_folder(const ::std::string& value) { - set_has_root_folder(); - if (root_folder_ == &::google::protobuf::internal::kEmptyString) { - root_folder_ = new ::std::string; - } - root_folder_->assign(value); -} -inline void WindowDataParameter::set_root_folder(const char* value) { - set_has_root_folder(); - if (root_folder_ == &::google::protobuf::internal::kEmptyString) { - root_folder_ = new ::std::string; - } - root_folder_->assign(value); -} -inline void WindowDataParameter::set_root_folder(const char* value, size_t size) { - set_has_root_folder(); - if (root_folder_ == &::google::protobuf::internal::kEmptyString) { - root_folder_ = new ::std::string; - } - root_folder_->assign(reinterpret_cast(value), size); -} -inline ::std::string* WindowDataParameter::mutable_root_folder() { - set_has_root_folder(); - if (root_folder_ == &::google::protobuf::internal::kEmptyString) { - root_folder_ = new ::std::string; - } - return root_folder_; -} -inline ::std::string* WindowDataParameter::release_root_folder() { - clear_has_root_folder(); - if (root_folder_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = root_folder_; - root_folder_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void WindowDataParameter::set_allocated_root_folder(::std::string* root_folder) { - if (root_folder_ != &::google::protobuf::internal::kEmptyString) { - delete root_folder_; - } - if (root_folder) { - set_has_root_folder(); - root_folder_ = root_folder; - } else { - clear_has_root_folder(); - root_folder_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// ------------------------------------------------------------------- - -// SPPParameter - -// optional uint32 pyramid_height = 1; -inline bool SPPParameter::has_pyramid_height() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void SPPParameter::set_has_pyramid_height() { - _has_bits_[0] |= 0x00000001u; -} -inline void SPPParameter::clear_has_pyramid_height() { - _has_bits_[0] &= ~0x00000001u; -} -inline void SPPParameter::clear_pyramid_height() { - pyramid_height_ = 0u; - clear_has_pyramid_height(); -} -inline ::google::protobuf::uint32 SPPParameter::pyramid_height() const { - return pyramid_height_; -} -inline void SPPParameter::set_pyramid_height(::google::protobuf::uint32 value) { - set_has_pyramid_height(); - pyramid_height_ = value; -} - -// optional .caffe.SPPParameter.PoolMethod pool = 2 [default = MAX]; -inline bool SPPParameter::has_pool() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void SPPParameter::set_has_pool() { - _has_bits_[0] |= 0x00000002u; -} -inline void SPPParameter::clear_has_pool() { - _has_bits_[0] &= ~0x00000002u; -} -inline void SPPParameter::clear_pool() { - pool_ = 0; - clear_has_pool(); -} -inline ::caffe::SPPParameter_PoolMethod SPPParameter::pool() const { - return static_cast< ::caffe::SPPParameter_PoolMethod >(pool_); -} -inline void SPPParameter::set_pool(::caffe::SPPParameter_PoolMethod value) { - assert(::caffe::SPPParameter_PoolMethod_IsValid(value)); - set_has_pool(); - pool_ = value; -} - -// optional .caffe.SPPParameter.Engine engine = 6 [default = DEFAULT]; -inline bool SPPParameter::has_engine() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void SPPParameter::set_has_engine() { - _has_bits_[0] |= 0x00000004u; -} -inline void SPPParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00000004u; -} -inline void SPPParameter::clear_engine() { - engine_ = 0; - clear_has_engine(); -} -inline ::caffe::SPPParameter_Engine SPPParameter::engine() const { - return static_cast< ::caffe::SPPParameter_Engine >(engine_); -} -inline void SPPParameter::set_engine(::caffe::SPPParameter_Engine value) { - assert(::caffe::SPPParameter_Engine_IsValid(value)); - set_has_engine(); - engine_ = value; -} - -// ------------------------------------------------------------------- - -// V1LayerParameter - -// repeated string bottom = 2; -inline int V1LayerParameter::bottom_size() const { - return bottom_.size(); -} -inline void V1LayerParameter::clear_bottom() { - bottom_.Clear(); -} -inline const ::std::string& V1LayerParameter::bottom(int index) const { - return bottom_.Get(index); -} -inline ::std::string* V1LayerParameter::mutable_bottom(int index) { - return bottom_.Mutable(index); -} -inline void V1LayerParameter::set_bottom(int index, const ::std::string& value) { - bottom_.Mutable(index)->assign(value); -} -inline void V1LayerParameter::set_bottom(int index, const char* value) { - bottom_.Mutable(index)->assign(value); -} -inline void V1LayerParameter::set_bottom(int index, const char* value, size_t size) { - bottom_.Mutable(index)->assign( - reinterpret_cast(value), size); -} -inline ::std::string* V1LayerParameter::add_bottom() { - return bottom_.Add(); -} -inline void V1LayerParameter::add_bottom(const ::std::string& value) { - bottom_.Add()->assign(value); -} -inline void V1LayerParameter::add_bottom(const char* value) { - bottom_.Add()->assign(value); -} -inline void V1LayerParameter::add_bottom(const char* value, size_t size) { - bottom_.Add()->assign(reinterpret_cast(value), size); -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -V1LayerParameter::bottom() const { - return bottom_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -V1LayerParameter::mutable_bottom() { - return &bottom_; -} - -// repeated string top = 3; -inline int V1LayerParameter::top_size() const { - return top_.size(); -} -inline void V1LayerParameter::clear_top() { - top_.Clear(); -} -inline const ::std::string& V1LayerParameter::top(int index) const { - return top_.Get(index); -} -inline ::std::string* V1LayerParameter::mutable_top(int index) { - return top_.Mutable(index); -} -inline void V1LayerParameter::set_top(int index, const ::std::string& value) { - top_.Mutable(index)->assign(value); -} -inline void V1LayerParameter::set_top(int index, const char* value) { - top_.Mutable(index)->assign(value); -} -inline void V1LayerParameter::set_top(int index, const char* value, size_t size) { - top_.Mutable(index)->assign( - reinterpret_cast(value), size); -} -inline ::std::string* V1LayerParameter::add_top() { - return top_.Add(); -} -inline void V1LayerParameter::add_top(const ::std::string& value) { - top_.Add()->assign(value); -} -inline void V1LayerParameter::add_top(const char* value) { - top_.Add()->assign(value); -} -inline void V1LayerParameter::add_top(const char* value, size_t size) { - top_.Add()->assign(reinterpret_cast(value), size); -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -V1LayerParameter::top() const { - return top_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -V1LayerParameter::mutable_top() { - return &top_; -} - -// optional string name = 4; -inline bool V1LayerParameter::has_name() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void V1LayerParameter::set_has_name() { - _has_bits_[0] |= 0x00000004u; -} -inline void V1LayerParameter::clear_has_name() { - _has_bits_[0] &= ~0x00000004u; -} -inline void V1LayerParameter::clear_name() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - clear_has_name(); -} -inline const ::std::string& V1LayerParameter::name() const { - return *name_; -} -inline void V1LayerParameter::set_name(const ::std::string& value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void V1LayerParameter::set_name(const char* value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void V1LayerParameter::set_name(const char* value, size_t size) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(reinterpret_cast(value), size); -} -inline ::std::string* V1LayerParameter::mutable_name() { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - return name_; -} -inline ::std::string* V1LayerParameter::release_name() { - clear_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = name_; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void V1LayerParameter::set_allocated_name(::std::string* name) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (name) { - set_has_name(); - name_ = name; - } else { - clear_has_name(); - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// repeated .caffe.NetStateRule include = 32; -inline int V1LayerParameter::include_size() const { - return include_.size(); -} -inline void V1LayerParameter::clear_include() { - include_.Clear(); -} -inline const ::caffe::NetStateRule& V1LayerParameter::include(int index) const { - return include_.Get(index); -} -inline ::caffe::NetStateRule* V1LayerParameter::mutable_include(int index) { - return include_.Mutable(index); -} -inline ::caffe::NetStateRule* V1LayerParameter::add_include() { - return include_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >& -V1LayerParameter::include() const { - return include_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >* -V1LayerParameter::mutable_include() { - return &include_; -} - -// repeated .caffe.NetStateRule exclude = 33; -inline int V1LayerParameter::exclude_size() const { - return exclude_.size(); -} -inline void V1LayerParameter::clear_exclude() { - exclude_.Clear(); -} -inline const ::caffe::NetStateRule& V1LayerParameter::exclude(int index) const { - return exclude_.Get(index); -} -inline ::caffe::NetStateRule* V1LayerParameter::mutable_exclude(int index) { - return exclude_.Mutable(index); -} -inline ::caffe::NetStateRule* V1LayerParameter::add_exclude() { - return exclude_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >& -V1LayerParameter::exclude() const { - return exclude_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >* -V1LayerParameter::mutable_exclude() { - return &exclude_; -} - -// optional .caffe.V1LayerParameter.LayerType type = 5; -inline bool V1LayerParameter::has_type() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void V1LayerParameter::set_has_type() { - _has_bits_[0] |= 0x00000020u; -} -inline void V1LayerParameter::clear_has_type() { - _has_bits_[0] &= ~0x00000020u; -} -inline void V1LayerParameter::clear_type() { - type_ = 0; - clear_has_type(); -} -inline ::caffe::V1LayerParameter_LayerType V1LayerParameter::type() const { - return static_cast< ::caffe::V1LayerParameter_LayerType >(type_); -} -inline void V1LayerParameter::set_type(::caffe::V1LayerParameter_LayerType value) { - assert(::caffe::V1LayerParameter_LayerType_IsValid(value)); - set_has_type(); - type_ = value; -} - -// repeated .caffe.BlobProto blobs = 6; -inline int V1LayerParameter::blobs_size() const { - return blobs_.size(); -} -inline void V1LayerParameter::clear_blobs() { - blobs_.Clear(); -} -inline const ::caffe::BlobProto& V1LayerParameter::blobs(int index) const { - return blobs_.Get(index); -} -inline ::caffe::BlobProto* V1LayerParameter::mutable_blobs(int index) { - return blobs_.Mutable(index); -} -inline ::caffe::BlobProto* V1LayerParameter::add_blobs() { - return blobs_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >& -V1LayerParameter::blobs() const { - return blobs_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >* -V1LayerParameter::mutable_blobs() { - return &blobs_; -} - -// repeated string param = 1001; -inline int V1LayerParameter::param_size() const { - return param_.size(); -} -inline void V1LayerParameter::clear_param() { - param_.Clear(); -} -inline const ::std::string& V1LayerParameter::param(int index) const { - return param_.Get(index); -} -inline ::std::string* V1LayerParameter::mutable_param(int index) { - return param_.Mutable(index); -} -inline void V1LayerParameter::set_param(int index, const ::std::string& value) { - param_.Mutable(index)->assign(value); -} -inline void V1LayerParameter::set_param(int index, const char* value) { - param_.Mutable(index)->assign(value); -} -inline void V1LayerParameter::set_param(int index, const char* value, size_t size) { - param_.Mutable(index)->assign( - reinterpret_cast(value), size); -} -inline ::std::string* V1LayerParameter::add_param() { - return param_.Add(); -} -inline void V1LayerParameter::add_param(const ::std::string& value) { - param_.Add()->assign(value); -} -inline void V1LayerParameter::add_param(const char* value) { - param_.Add()->assign(value); -} -inline void V1LayerParameter::add_param(const char* value, size_t size) { - param_.Add()->assign(reinterpret_cast(value), size); -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -V1LayerParameter::param() const { - return param_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -V1LayerParameter::mutable_param() { - return ¶m_; -} - -// repeated .caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002; -inline int V1LayerParameter::blob_share_mode_size() const { - return blob_share_mode_.size(); -} -inline void V1LayerParameter::clear_blob_share_mode() { - blob_share_mode_.Clear(); -} -inline ::caffe::V1LayerParameter_DimCheckMode V1LayerParameter::blob_share_mode(int index) const { - return static_cast< ::caffe::V1LayerParameter_DimCheckMode >(blob_share_mode_.Get(index)); -} -inline void V1LayerParameter::set_blob_share_mode(int index, ::caffe::V1LayerParameter_DimCheckMode value) { - assert(::caffe::V1LayerParameter_DimCheckMode_IsValid(value)); - blob_share_mode_.Set(index, value); -} -inline void V1LayerParameter::add_blob_share_mode(::caffe::V1LayerParameter_DimCheckMode value) { - assert(::caffe::V1LayerParameter_DimCheckMode_IsValid(value)); - blob_share_mode_.Add(value); -} -inline const ::google::protobuf::RepeatedField& -V1LayerParameter::blob_share_mode() const { - return blob_share_mode_; -} -inline ::google::protobuf::RepeatedField* -V1LayerParameter::mutable_blob_share_mode() { - return &blob_share_mode_; -} - -// repeated float blobs_lr = 7; -inline int V1LayerParameter::blobs_lr_size() const { - return blobs_lr_.size(); -} -inline void V1LayerParameter::clear_blobs_lr() { - blobs_lr_.Clear(); -} -inline float V1LayerParameter::blobs_lr(int index) const { - return blobs_lr_.Get(index); -} -inline void V1LayerParameter::set_blobs_lr(int index, float value) { - blobs_lr_.Set(index, value); -} -inline void V1LayerParameter::add_blobs_lr(float value) { - blobs_lr_.Add(value); -} -inline const ::google::protobuf::RepeatedField< float >& -V1LayerParameter::blobs_lr() const { - return blobs_lr_; -} -inline ::google::protobuf::RepeatedField< float >* -V1LayerParameter::mutable_blobs_lr() { - return &blobs_lr_; -} - -// repeated float weight_decay = 8; -inline int V1LayerParameter::weight_decay_size() const { - return weight_decay_.size(); -} -inline void V1LayerParameter::clear_weight_decay() { - weight_decay_.Clear(); -} -inline float V1LayerParameter::weight_decay(int index) const { - return weight_decay_.Get(index); -} -inline void V1LayerParameter::set_weight_decay(int index, float value) { - weight_decay_.Set(index, value); -} -inline void V1LayerParameter::add_weight_decay(float value) { - weight_decay_.Add(value); -} -inline const ::google::protobuf::RepeatedField< float >& -V1LayerParameter::weight_decay() const { - return weight_decay_; -} -inline ::google::protobuf::RepeatedField< float >* -V1LayerParameter::mutable_weight_decay() { - return &weight_decay_; -} - -// repeated float loss_weight = 35; -inline int V1LayerParameter::loss_weight_size() const { - return loss_weight_.size(); -} -inline void V1LayerParameter::clear_loss_weight() { - loss_weight_.Clear(); -} -inline float V1LayerParameter::loss_weight(int index) const { - return loss_weight_.Get(index); -} -inline void V1LayerParameter::set_loss_weight(int index, float value) { - loss_weight_.Set(index, value); -} -inline void V1LayerParameter::add_loss_weight(float value) { - loss_weight_.Add(value); -} -inline const ::google::protobuf::RepeatedField< float >& -V1LayerParameter::loss_weight() const { - return loss_weight_; -} -inline ::google::protobuf::RepeatedField< float >* -V1LayerParameter::mutable_loss_weight() { - return &loss_weight_; -} - -// optional .caffe.AccuracyParameter accuracy_param = 27; -inline bool V1LayerParameter::has_accuracy_param() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -inline void V1LayerParameter::set_has_accuracy_param() { - _has_bits_[0] |= 0x00001000u; -} -inline void V1LayerParameter::clear_has_accuracy_param() { - _has_bits_[0] &= ~0x00001000u; -} -inline void V1LayerParameter::clear_accuracy_param() { - if (accuracy_param_ != NULL) accuracy_param_->::caffe::AccuracyParameter::Clear(); - clear_has_accuracy_param(); -} -inline const ::caffe::AccuracyParameter& V1LayerParameter::accuracy_param() const { - return accuracy_param_ != NULL ? *accuracy_param_ : *default_instance_->accuracy_param_; -} -inline ::caffe::AccuracyParameter* V1LayerParameter::mutable_accuracy_param() { - set_has_accuracy_param(); - if (accuracy_param_ == NULL) accuracy_param_ = new ::caffe::AccuracyParameter; - return accuracy_param_; -} -inline ::caffe::AccuracyParameter* V1LayerParameter::release_accuracy_param() { - clear_has_accuracy_param(); - ::caffe::AccuracyParameter* temp = accuracy_param_; - accuracy_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_accuracy_param(::caffe::AccuracyParameter* accuracy_param) { - delete accuracy_param_; - accuracy_param_ = accuracy_param; - if (accuracy_param) { - set_has_accuracy_param(); - } else { - clear_has_accuracy_param(); - } -} - -// optional .caffe.ArgMaxParameter argmax_param = 23; -inline bool V1LayerParameter::has_argmax_param() const { - return (_has_bits_[0] & 0x00002000u) != 0; -} -inline void V1LayerParameter::set_has_argmax_param() { - _has_bits_[0] |= 0x00002000u; -} -inline void V1LayerParameter::clear_has_argmax_param() { - _has_bits_[0] &= ~0x00002000u; -} -inline void V1LayerParameter::clear_argmax_param() { - if (argmax_param_ != NULL) argmax_param_->::caffe::ArgMaxParameter::Clear(); - clear_has_argmax_param(); -} -inline const ::caffe::ArgMaxParameter& V1LayerParameter::argmax_param() const { - return argmax_param_ != NULL ? *argmax_param_ : *default_instance_->argmax_param_; -} -inline ::caffe::ArgMaxParameter* V1LayerParameter::mutable_argmax_param() { - set_has_argmax_param(); - if (argmax_param_ == NULL) argmax_param_ = new ::caffe::ArgMaxParameter; - return argmax_param_; -} -inline ::caffe::ArgMaxParameter* V1LayerParameter::release_argmax_param() { - clear_has_argmax_param(); - ::caffe::ArgMaxParameter* temp = argmax_param_; - argmax_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_argmax_param(::caffe::ArgMaxParameter* argmax_param) { - delete argmax_param_; - argmax_param_ = argmax_param; - if (argmax_param) { - set_has_argmax_param(); - } else { - clear_has_argmax_param(); - } -} - -// optional .caffe.ConcatParameter concat_param = 9; -inline bool V1LayerParameter::has_concat_param() const { - return (_has_bits_[0] & 0x00004000u) != 0; -} -inline void V1LayerParameter::set_has_concat_param() { - _has_bits_[0] |= 0x00004000u; -} -inline void V1LayerParameter::clear_has_concat_param() { - _has_bits_[0] &= ~0x00004000u; -} -inline void V1LayerParameter::clear_concat_param() { - if (concat_param_ != NULL) concat_param_->::caffe::ConcatParameter::Clear(); - clear_has_concat_param(); -} -inline const ::caffe::ConcatParameter& V1LayerParameter::concat_param() const { - return concat_param_ != NULL ? *concat_param_ : *default_instance_->concat_param_; -} -inline ::caffe::ConcatParameter* V1LayerParameter::mutable_concat_param() { - set_has_concat_param(); - if (concat_param_ == NULL) concat_param_ = new ::caffe::ConcatParameter; - return concat_param_; -} -inline ::caffe::ConcatParameter* V1LayerParameter::release_concat_param() { - clear_has_concat_param(); - ::caffe::ConcatParameter* temp = concat_param_; - concat_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_concat_param(::caffe::ConcatParameter* concat_param) { - delete concat_param_; - concat_param_ = concat_param; - if (concat_param) { - set_has_concat_param(); - } else { - clear_has_concat_param(); - } -} - -// optional .caffe.ContrastiveLossParameter contrastive_loss_param = 40; -inline bool V1LayerParameter::has_contrastive_loss_param() const { - return (_has_bits_[0] & 0x00008000u) != 0; -} -inline void V1LayerParameter::set_has_contrastive_loss_param() { - _has_bits_[0] |= 0x00008000u; -} -inline void V1LayerParameter::clear_has_contrastive_loss_param() { - _has_bits_[0] &= ~0x00008000u; -} -inline void V1LayerParameter::clear_contrastive_loss_param() { - if (contrastive_loss_param_ != NULL) contrastive_loss_param_->::caffe::ContrastiveLossParameter::Clear(); - clear_has_contrastive_loss_param(); -} -inline const ::caffe::ContrastiveLossParameter& V1LayerParameter::contrastive_loss_param() const { - return contrastive_loss_param_ != NULL ? *contrastive_loss_param_ : *default_instance_->contrastive_loss_param_; -} -inline ::caffe::ContrastiveLossParameter* V1LayerParameter::mutable_contrastive_loss_param() { - set_has_contrastive_loss_param(); - if (contrastive_loss_param_ == NULL) contrastive_loss_param_ = new ::caffe::ContrastiveLossParameter; - return contrastive_loss_param_; -} -inline ::caffe::ContrastiveLossParameter* V1LayerParameter::release_contrastive_loss_param() { - clear_has_contrastive_loss_param(); - ::caffe::ContrastiveLossParameter* temp = contrastive_loss_param_; - contrastive_loss_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_contrastive_loss_param(::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(); - } -} - -// optional .caffe.ConvolutionParameter convolution_param = 10; -inline bool V1LayerParameter::has_convolution_param() const { - return (_has_bits_[0] & 0x00010000u) != 0; -} -inline void V1LayerParameter::set_has_convolution_param() { - _has_bits_[0] |= 0x00010000u; -} -inline void V1LayerParameter::clear_has_convolution_param() { - _has_bits_[0] &= ~0x00010000u; -} -inline void V1LayerParameter::clear_convolution_param() { - if (convolution_param_ != NULL) convolution_param_->::caffe::ConvolutionParameter::Clear(); - clear_has_convolution_param(); -} -inline const ::caffe::ConvolutionParameter& V1LayerParameter::convolution_param() const { - return convolution_param_ != NULL ? *convolution_param_ : *default_instance_->convolution_param_; -} -inline ::caffe::ConvolutionParameter* V1LayerParameter::mutable_convolution_param() { - set_has_convolution_param(); - if (convolution_param_ == NULL) convolution_param_ = new ::caffe::ConvolutionParameter; - return convolution_param_; -} -inline ::caffe::ConvolutionParameter* V1LayerParameter::release_convolution_param() { - clear_has_convolution_param(); - ::caffe::ConvolutionParameter* temp = convolution_param_; - convolution_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_convolution_param(::caffe::ConvolutionParameter* convolution_param) { - delete convolution_param_; - convolution_param_ = convolution_param; - if (convolution_param) { - set_has_convolution_param(); - } else { - clear_has_convolution_param(); - } -} - -// optional .caffe.DataParameter data_param = 11; -inline bool V1LayerParameter::has_data_param() const { - return (_has_bits_[0] & 0x00020000u) != 0; -} -inline void V1LayerParameter::set_has_data_param() { - _has_bits_[0] |= 0x00020000u; -} -inline void V1LayerParameter::clear_has_data_param() { - _has_bits_[0] &= ~0x00020000u; -} -inline void V1LayerParameter::clear_data_param() { - if (data_param_ != NULL) data_param_->::caffe::DataParameter::Clear(); - clear_has_data_param(); -} -inline const ::caffe::DataParameter& V1LayerParameter::data_param() const { - return data_param_ != NULL ? *data_param_ : *default_instance_->data_param_; -} -inline ::caffe::DataParameter* V1LayerParameter::mutable_data_param() { - set_has_data_param(); - if (data_param_ == NULL) data_param_ = new ::caffe::DataParameter; - return data_param_; -} -inline ::caffe::DataParameter* V1LayerParameter::release_data_param() { - clear_has_data_param(); - ::caffe::DataParameter* temp = data_param_; - data_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_data_param(::caffe::DataParameter* data_param) { - delete data_param_; - data_param_ = data_param; - if (data_param) { - set_has_data_param(); - } else { - clear_has_data_param(); - } -} - -// optional .caffe.DropoutParameter dropout_param = 12; -inline bool V1LayerParameter::has_dropout_param() const { - return (_has_bits_[0] & 0x00040000u) != 0; -} -inline void V1LayerParameter::set_has_dropout_param() { - _has_bits_[0] |= 0x00040000u; -} -inline void V1LayerParameter::clear_has_dropout_param() { - _has_bits_[0] &= ~0x00040000u; -} -inline void V1LayerParameter::clear_dropout_param() { - if (dropout_param_ != NULL) dropout_param_->::caffe::DropoutParameter::Clear(); - clear_has_dropout_param(); -} -inline const ::caffe::DropoutParameter& V1LayerParameter::dropout_param() const { - return dropout_param_ != NULL ? *dropout_param_ : *default_instance_->dropout_param_; -} -inline ::caffe::DropoutParameter* V1LayerParameter::mutable_dropout_param() { - set_has_dropout_param(); - if (dropout_param_ == NULL) dropout_param_ = new ::caffe::DropoutParameter; - return dropout_param_; -} -inline ::caffe::DropoutParameter* V1LayerParameter::release_dropout_param() { - clear_has_dropout_param(); - ::caffe::DropoutParameter* temp = dropout_param_; - dropout_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_dropout_param(::caffe::DropoutParameter* dropout_param) { - delete dropout_param_; - dropout_param_ = dropout_param; - if (dropout_param) { - set_has_dropout_param(); - } else { - clear_has_dropout_param(); - } -} - -// optional .caffe.DummyDataParameter dummy_data_param = 26; -inline bool V1LayerParameter::has_dummy_data_param() const { - return (_has_bits_[0] & 0x00080000u) != 0; -} -inline void V1LayerParameter::set_has_dummy_data_param() { - _has_bits_[0] |= 0x00080000u; -} -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_->::caffe::DummyDataParameter::Clear(); - clear_has_dummy_data_param(); -} -inline const ::caffe::DummyDataParameter& V1LayerParameter::dummy_data_param() const { - return dummy_data_param_ != NULL ? *dummy_data_param_ : *default_instance_->dummy_data_param_; -} -inline ::caffe::DummyDataParameter* V1LayerParameter::mutable_dummy_data_param() { - set_has_dummy_data_param(); - if (dummy_data_param_ == NULL) dummy_data_param_ = new ::caffe::DummyDataParameter; - return dummy_data_param_; -} -inline ::caffe::DummyDataParameter* V1LayerParameter::release_dummy_data_param() { - clear_has_dummy_data_param(); - ::caffe::DummyDataParameter* temp = dummy_data_param_; - dummy_data_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_dummy_data_param(::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(); - } -} - -// optional .caffe.EltwiseParameter eltwise_param = 24; -inline bool V1LayerParameter::has_eltwise_param() const { - return (_has_bits_[0] & 0x00100000u) != 0; -} -inline void V1LayerParameter::set_has_eltwise_param() { - _has_bits_[0] |= 0x00100000u; -} -inline void V1LayerParameter::clear_has_eltwise_param() { - _has_bits_[0] &= ~0x00100000u; -} -inline void V1LayerParameter::clear_eltwise_param() { - if (eltwise_param_ != NULL) eltwise_param_->::caffe::EltwiseParameter::Clear(); - clear_has_eltwise_param(); -} -inline const ::caffe::EltwiseParameter& V1LayerParameter::eltwise_param() const { - return eltwise_param_ != NULL ? *eltwise_param_ : *default_instance_->eltwise_param_; -} -inline ::caffe::EltwiseParameter* V1LayerParameter::mutable_eltwise_param() { - set_has_eltwise_param(); - if (eltwise_param_ == NULL) eltwise_param_ = new ::caffe::EltwiseParameter; - return eltwise_param_; -} -inline ::caffe::EltwiseParameter* V1LayerParameter::release_eltwise_param() { - clear_has_eltwise_param(); - ::caffe::EltwiseParameter* temp = eltwise_param_; - eltwise_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_eltwise_param(::caffe::EltwiseParameter* eltwise_param) { - delete eltwise_param_; - eltwise_param_ = eltwise_param; - if (eltwise_param) { - set_has_eltwise_param(); - } else { - clear_has_eltwise_param(); - } -} - -// optional .caffe.ExpParameter exp_param = 41; -inline bool V1LayerParameter::has_exp_param() const { - return (_has_bits_[0] & 0x00200000u) != 0; -} -inline void V1LayerParameter::set_has_exp_param() { - _has_bits_[0] |= 0x00200000u; -} -inline void V1LayerParameter::clear_has_exp_param() { - _has_bits_[0] &= ~0x00200000u; -} -inline void V1LayerParameter::clear_exp_param() { - if (exp_param_ != NULL) exp_param_->::caffe::ExpParameter::Clear(); - clear_has_exp_param(); -} -inline const ::caffe::ExpParameter& V1LayerParameter::exp_param() const { - return exp_param_ != NULL ? *exp_param_ : *default_instance_->exp_param_; -} -inline ::caffe::ExpParameter* V1LayerParameter::mutable_exp_param() { - set_has_exp_param(); - if (exp_param_ == NULL) exp_param_ = new ::caffe::ExpParameter; - return exp_param_; -} -inline ::caffe::ExpParameter* V1LayerParameter::release_exp_param() { - clear_has_exp_param(); - ::caffe::ExpParameter* temp = exp_param_; - exp_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_exp_param(::caffe::ExpParameter* exp_param) { - delete exp_param_; - exp_param_ = exp_param; - if (exp_param) { - set_has_exp_param(); - } else { - clear_has_exp_param(); - } -} - -// optional .caffe.HDF5DataParameter hdf5_data_param = 13; -inline bool V1LayerParameter::has_hdf5_data_param() const { - return (_has_bits_[0] & 0x00400000u) != 0; -} -inline void V1LayerParameter::set_has_hdf5_data_param() { - _has_bits_[0] |= 0x00400000u; -} -inline void V1LayerParameter::clear_has_hdf5_data_param() { - _has_bits_[0] &= ~0x00400000u; -} -inline void V1LayerParameter::clear_hdf5_data_param() { - if (hdf5_data_param_ != NULL) hdf5_data_param_->::caffe::HDF5DataParameter::Clear(); - clear_has_hdf5_data_param(); -} -inline const ::caffe::HDF5DataParameter& V1LayerParameter::hdf5_data_param() const { - return hdf5_data_param_ != NULL ? *hdf5_data_param_ : *default_instance_->hdf5_data_param_; -} -inline ::caffe::HDF5DataParameter* V1LayerParameter::mutable_hdf5_data_param() { - set_has_hdf5_data_param(); - if (hdf5_data_param_ == NULL) hdf5_data_param_ = new ::caffe::HDF5DataParameter; - return hdf5_data_param_; -} -inline ::caffe::HDF5DataParameter* V1LayerParameter::release_hdf5_data_param() { - clear_has_hdf5_data_param(); - ::caffe::HDF5DataParameter* temp = hdf5_data_param_; - hdf5_data_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_hdf5_data_param(::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(); - } -} - -// optional .caffe.HDF5OutputParameter hdf5_output_param = 14; -inline bool V1LayerParameter::has_hdf5_output_param() const { - return (_has_bits_[0] & 0x00800000u) != 0; -} -inline void V1LayerParameter::set_has_hdf5_output_param() { - _has_bits_[0] |= 0x00800000u; -} -inline void V1LayerParameter::clear_has_hdf5_output_param() { - _has_bits_[0] &= ~0x00800000u; -} -inline void V1LayerParameter::clear_hdf5_output_param() { - if (hdf5_output_param_ != NULL) hdf5_output_param_->::caffe::HDF5OutputParameter::Clear(); - clear_has_hdf5_output_param(); -} -inline const ::caffe::HDF5OutputParameter& V1LayerParameter::hdf5_output_param() const { - return hdf5_output_param_ != NULL ? *hdf5_output_param_ : *default_instance_->hdf5_output_param_; -} -inline ::caffe::HDF5OutputParameter* V1LayerParameter::mutable_hdf5_output_param() { - set_has_hdf5_output_param(); - if (hdf5_output_param_ == NULL) hdf5_output_param_ = new ::caffe::HDF5OutputParameter; - return hdf5_output_param_; -} -inline ::caffe::HDF5OutputParameter* V1LayerParameter::release_hdf5_output_param() { - clear_has_hdf5_output_param(); - ::caffe::HDF5OutputParameter* temp = hdf5_output_param_; - hdf5_output_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_hdf5_output_param(::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(); - } -} - -// optional .caffe.HingeLossParameter hinge_loss_param = 29; -inline bool V1LayerParameter::has_hinge_loss_param() const { - return (_has_bits_[0] & 0x01000000u) != 0; -} -inline void V1LayerParameter::set_has_hinge_loss_param() { - _has_bits_[0] |= 0x01000000u; -} -inline void V1LayerParameter::clear_has_hinge_loss_param() { - _has_bits_[0] &= ~0x01000000u; -} -inline void V1LayerParameter::clear_hinge_loss_param() { - if (hinge_loss_param_ != NULL) hinge_loss_param_->::caffe::HingeLossParameter::Clear(); - clear_has_hinge_loss_param(); -} -inline const ::caffe::HingeLossParameter& V1LayerParameter::hinge_loss_param() const { - return hinge_loss_param_ != NULL ? *hinge_loss_param_ : *default_instance_->hinge_loss_param_; -} -inline ::caffe::HingeLossParameter* V1LayerParameter::mutable_hinge_loss_param() { - set_has_hinge_loss_param(); - if (hinge_loss_param_ == NULL) hinge_loss_param_ = new ::caffe::HingeLossParameter; - return hinge_loss_param_; -} -inline ::caffe::HingeLossParameter* V1LayerParameter::release_hinge_loss_param() { - clear_has_hinge_loss_param(); - ::caffe::HingeLossParameter* temp = hinge_loss_param_; - hinge_loss_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_hinge_loss_param(::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(); - } -} - -// optional .caffe.ImageDataParameter image_data_param = 15; -inline bool V1LayerParameter::has_image_data_param() const { - return (_has_bits_[0] & 0x02000000u) != 0; -} -inline void V1LayerParameter::set_has_image_data_param() { - _has_bits_[0] |= 0x02000000u; -} -inline void V1LayerParameter::clear_has_image_data_param() { - _has_bits_[0] &= ~0x02000000u; -} -inline void V1LayerParameter::clear_image_data_param() { - if (image_data_param_ != NULL) image_data_param_->::caffe::ImageDataParameter::Clear(); - clear_has_image_data_param(); -} -inline const ::caffe::ImageDataParameter& V1LayerParameter::image_data_param() const { - return image_data_param_ != NULL ? *image_data_param_ : *default_instance_->image_data_param_; -} -inline ::caffe::ImageDataParameter* V1LayerParameter::mutable_image_data_param() { - set_has_image_data_param(); - if (image_data_param_ == NULL) image_data_param_ = new ::caffe::ImageDataParameter; - return image_data_param_; -} -inline ::caffe::ImageDataParameter* V1LayerParameter::release_image_data_param() { - clear_has_image_data_param(); - ::caffe::ImageDataParameter* temp = image_data_param_; - image_data_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_image_data_param(::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(); - } -} - -// optional .caffe.InfogainLossParameter infogain_loss_param = 16; -inline bool V1LayerParameter::has_infogain_loss_param() const { - return (_has_bits_[0] & 0x04000000u) != 0; -} -inline void V1LayerParameter::set_has_infogain_loss_param() { - _has_bits_[0] |= 0x04000000u; -} -inline void V1LayerParameter::clear_has_infogain_loss_param() { - _has_bits_[0] &= ~0x04000000u; -} -inline void V1LayerParameter::clear_infogain_loss_param() { - if (infogain_loss_param_ != NULL) infogain_loss_param_->::caffe::InfogainLossParameter::Clear(); - clear_has_infogain_loss_param(); -} -inline const ::caffe::InfogainLossParameter& V1LayerParameter::infogain_loss_param() const { - return infogain_loss_param_ != NULL ? *infogain_loss_param_ : *default_instance_->infogain_loss_param_; -} -inline ::caffe::InfogainLossParameter* V1LayerParameter::mutable_infogain_loss_param() { - set_has_infogain_loss_param(); - if (infogain_loss_param_ == NULL) infogain_loss_param_ = new ::caffe::InfogainLossParameter; - return infogain_loss_param_; -} -inline ::caffe::InfogainLossParameter* V1LayerParameter::release_infogain_loss_param() { - clear_has_infogain_loss_param(); - ::caffe::InfogainLossParameter* temp = infogain_loss_param_; - infogain_loss_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_infogain_loss_param(::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(); - } -} - -// optional .caffe.InnerProductParameter inner_product_param = 17; -inline bool V1LayerParameter::has_inner_product_param() const { - return (_has_bits_[0] & 0x08000000u) != 0; -} -inline void V1LayerParameter::set_has_inner_product_param() { - _has_bits_[0] |= 0x08000000u; -} -inline void V1LayerParameter::clear_has_inner_product_param() { - _has_bits_[0] &= ~0x08000000u; -} -inline void V1LayerParameter::clear_inner_product_param() { - if (inner_product_param_ != NULL) inner_product_param_->::caffe::InnerProductParameter::Clear(); - clear_has_inner_product_param(); -} -inline const ::caffe::InnerProductParameter& V1LayerParameter::inner_product_param() const { - return inner_product_param_ != NULL ? *inner_product_param_ : *default_instance_->inner_product_param_; -} -inline ::caffe::InnerProductParameter* V1LayerParameter::mutable_inner_product_param() { - set_has_inner_product_param(); - if (inner_product_param_ == NULL) inner_product_param_ = new ::caffe::InnerProductParameter; - return inner_product_param_; -} -inline ::caffe::InnerProductParameter* V1LayerParameter::release_inner_product_param() { - clear_has_inner_product_param(); - ::caffe::InnerProductParameter* temp = inner_product_param_; - inner_product_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_inner_product_param(::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(); - } -} - -// optional .caffe.LRNParameter lrn_param = 18; -inline bool V1LayerParameter::has_lrn_param() const { - return (_has_bits_[0] & 0x10000000u) != 0; -} -inline void V1LayerParameter::set_has_lrn_param() { - _has_bits_[0] |= 0x10000000u; -} -inline void V1LayerParameter::clear_has_lrn_param() { - _has_bits_[0] &= ~0x10000000u; -} -inline void V1LayerParameter::clear_lrn_param() { - if (lrn_param_ != NULL) lrn_param_->::caffe::LRNParameter::Clear(); - clear_has_lrn_param(); -} -inline const ::caffe::LRNParameter& V1LayerParameter::lrn_param() const { - return lrn_param_ != NULL ? *lrn_param_ : *default_instance_->lrn_param_; -} -inline ::caffe::LRNParameter* V1LayerParameter::mutable_lrn_param() { - set_has_lrn_param(); - if (lrn_param_ == NULL) lrn_param_ = new ::caffe::LRNParameter; - return lrn_param_; -} -inline ::caffe::LRNParameter* V1LayerParameter::release_lrn_param() { - clear_has_lrn_param(); - ::caffe::LRNParameter* temp = lrn_param_; - lrn_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_lrn_param(::caffe::LRNParameter* lrn_param) { - delete lrn_param_; - lrn_param_ = lrn_param; - if (lrn_param) { - set_has_lrn_param(); - } else { - clear_has_lrn_param(); - } -} - -// optional .caffe.MemoryDataParameter memory_data_param = 22; -inline bool V1LayerParameter::has_memory_data_param() const { - return (_has_bits_[0] & 0x20000000u) != 0; -} -inline void V1LayerParameter::set_has_memory_data_param() { - _has_bits_[0] |= 0x20000000u; -} -inline void V1LayerParameter::clear_has_memory_data_param() { - _has_bits_[0] &= ~0x20000000u; -} -inline void V1LayerParameter::clear_memory_data_param() { - if (memory_data_param_ != NULL) memory_data_param_->::caffe::MemoryDataParameter::Clear(); - clear_has_memory_data_param(); -} -inline const ::caffe::MemoryDataParameter& V1LayerParameter::memory_data_param() const { - return memory_data_param_ != NULL ? *memory_data_param_ : *default_instance_->memory_data_param_; -} -inline ::caffe::MemoryDataParameter* V1LayerParameter::mutable_memory_data_param() { - set_has_memory_data_param(); - if (memory_data_param_ == NULL) memory_data_param_ = new ::caffe::MemoryDataParameter; - return memory_data_param_; -} -inline ::caffe::MemoryDataParameter* V1LayerParameter::release_memory_data_param() { - clear_has_memory_data_param(); - ::caffe::MemoryDataParameter* temp = memory_data_param_; - memory_data_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_memory_data_param(::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(); - } -} - -// optional .caffe.MVNParameter mvn_param = 34; -inline bool V1LayerParameter::has_mvn_param() const { - return (_has_bits_[0] & 0x40000000u) != 0; -} -inline void V1LayerParameter::set_has_mvn_param() { - _has_bits_[0] |= 0x40000000u; -} -inline void V1LayerParameter::clear_has_mvn_param() { - _has_bits_[0] &= ~0x40000000u; -} -inline void V1LayerParameter::clear_mvn_param() { - if (mvn_param_ != NULL) mvn_param_->::caffe::MVNParameter::Clear(); - clear_has_mvn_param(); -} -inline const ::caffe::MVNParameter& V1LayerParameter::mvn_param() const { - return mvn_param_ != NULL ? *mvn_param_ : *default_instance_->mvn_param_; -} -inline ::caffe::MVNParameter* V1LayerParameter::mutable_mvn_param() { - set_has_mvn_param(); - if (mvn_param_ == NULL) mvn_param_ = new ::caffe::MVNParameter; - return mvn_param_; -} -inline ::caffe::MVNParameter* V1LayerParameter::release_mvn_param() { - clear_has_mvn_param(); - ::caffe::MVNParameter* temp = mvn_param_; - mvn_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_mvn_param(::caffe::MVNParameter* mvn_param) { - delete mvn_param_; - mvn_param_ = mvn_param; - if (mvn_param) { - set_has_mvn_param(); - } else { - clear_has_mvn_param(); - } -} - -// optional .caffe.PoolingParameter pooling_param = 19; -inline bool V1LayerParameter::has_pooling_param() const { - return (_has_bits_[0] & 0x80000000u) != 0; -} -inline void V1LayerParameter::set_has_pooling_param() { - _has_bits_[0] |= 0x80000000u; -} -inline void V1LayerParameter::clear_has_pooling_param() { - _has_bits_[0] &= ~0x80000000u; -} -inline void V1LayerParameter::clear_pooling_param() { - if (pooling_param_ != NULL) pooling_param_->::caffe::PoolingParameter::Clear(); - clear_has_pooling_param(); -} -inline const ::caffe::PoolingParameter& V1LayerParameter::pooling_param() const { - return pooling_param_ != NULL ? *pooling_param_ : *default_instance_->pooling_param_; -} -inline ::caffe::PoolingParameter* V1LayerParameter::mutable_pooling_param() { - set_has_pooling_param(); - if (pooling_param_ == NULL) pooling_param_ = new ::caffe::PoolingParameter; - return pooling_param_; -} -inline ::caffe::PoolingParameter* V1LayerParameter::release_pooling_param() { - clear_has_pooling_param(); - ::caffe::PoolingParameter* temp = pooling_param_; - pooling_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_pooling_param(::caffe::PoolingParameter* pooling_param) { - delete pooling_param_; - pooling_param_ = pooling_param; - if (pooling_param) { - set_has_pooling_param(); - } else { - clear_has_pooling_param(); - } -} - -// optional .caffe.PowerParameter power_param = 21; -inline bool V1LayerParameter::has_power_param() const { - return (_has_bits_[1] & 0x00000001u) != 0; -} -inline void V1LayerParameter::set_has_power_param() { - _has_bits_[1] |= 0x00000001u; -} -inline void V1LayerParameter::clear_has_power_param() { - _has_bits_[1] &= ~0x00000001u; -} -inline void V1LayerParameter::clear_power_param() { - if (power_param_ != NULL) power_param_->::caffe::PowerParameter::Clear(); - clear_has_power_param(); -} -inline const ::caffe::PowerParameter& V1LayerParameter::power_param() const { - return power_param_ != NULL ? *power_param_ : *default_instance_->power_param_; -} -inline ::caffe::PowerParameter* V1LayerParameter::mutable_power_param() { - set_has_power_param(); - if (power_param_ == NULL) power_param_ = new ::caffe::PowerParameter; - return power_param_; -} -inline ::caffe::PowerParameter* V1LayerParameter::release_power_param() { - clear_has_power_param(); - ::caffe::PowerParameter* temp = power_param_; - power_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_power_param(::caffe::PowerParameter* power_param) { - delete power_param_; - power_param_ = power_param; - if (power_param) { - set_has_power_param(); - } else { - clear_has_power_param(); - } -} - -// optional .caffe.ReLUParameter relu_param = 30; -inline bool V1LayerParameter::has_relu_param() const { - return (_has_bits_[1] & 0x00000002u) != 0; -} -inline void V1LayerParameter::set_has_relu_param() { - _has_bits_[1] |= 0x00000002u; -} -inline void V1LayerParameter::clear_has_relu_param() { - _has_bits_[1] &= ~0x00000002u; -} -inline void V1LayerParameter::clear_relu_param() { - if (relu_param_ != NULL) relu_param_->::caffe::ReLUParameter::Clear(); - clear_has_relu_param(); -} -inline const ::caffe::ReLUParameter& V1LayerParameter::relu_param() const { - return relu_param_ != NULL ? *relu_param_ : *default_instance_->relu_param_; -} -inline ::caffe::ReLUParameter* V1LayerParameter::mutable_relu_param() { - set_has_relu_param(); - if (relu_param_ == NULL) relu_param_ = new ::caffe::ReLUParameter; - return relu_param_; -} -inline ::caffe::ReLUParameter* V1LayerParameter::release_relu_param() { - clear_has_relu_param(); - ::caffe::ReLUParameter* temp = relu_param_; - relu_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_relu_param(::caffe::ReLUParameter* relu_param) { - delete relu_param_; - relu_param_ = relu_param; - if (relu_param) { - set_has_relu_param(); - } else { - clear_has_relu_param(); - } -} - -// optional .caffe.SigmoidParameter sigmoid_param = 38; -inline bool V1LayerParameter::has_sigmoid_param() const { - return (_has_bits_[1] & 0x00000004u) != 0; -} -inline void V1LayerParameter::set_has_sigmoid_param() { - _has_bits_[1] |= 0x00000004u; -} -inline void V1LayerParameter::clear_has_sigmoid_param() { - _has_bits_[1] &= ~0x00000004u; -} -inline void V1LayerParameter::clear_sigmoid_param() { - if (sigmoid_param_ != NULL) sigmoid_param_->::caffe::SigmoidParameter::Clear(); - clear_has_sigmoid_param(); -} -inline const ::caffe::SigmoidParameter& V1LayerParameter::sigmoid_param() const { - return sigmoid_param_ != NULL ? *sigmoid_param_ : *default_instance_->sigmoid_param_; -} -inline ::caffe::SigmoidParameter* V1LayerParameter::mutable_sigmoid_param() { - set_has_sigmoid_param(); - if (sigmoid_param_ == NULL) sigmoid_param_ = new ::caffe::SigmoidParameter; - return sigmoid_param_; -} -inline ::caffe::SigmoidParameter* V1LayerParameter::release_sigmoid_param() { - clear_has_sigmoid_param(); - ::caffe::SigmoidParameter* temp = sigmoid_param_; - sigmoid_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_sigmoid_param(::caffe::SigmoidParameter* sigmoid_param) { - delete sigmoid_param_; - sigmoid_param_ = sigmoid_param; - if (sigmoid_param) { - set_has_sigmoid_param(); - } else { - clear_has_sigmoid_param(); - } -} - -// optional .caffe.SoftmaxParameter softmax_param = 39; -inline bool V1LayerParameter::has_softmax_param() const { - return (_has_bits_[1] & 0x00000008u) != 0; -} -inline void V1LayerParameter::set_has_softmax_param() { - _has_bits_[1] |= 0x00000008u; -} -inline void V1LayerParameter::clear_has_softmax_param() { - _has_bits_[1] &= ~0x00000008u; -} -inline void V1LayerParameter::clear_softmax_param() { - if (softmax_param_ != NULL) softmax_param_->::caffe::SoftmaxParameter::Clear(); - clear_has_softmax_param(); -} -inline const ::caffe::SoftmaxParameter& V1LayerParameter::softmax_param() const { - return softmax_param_ != NULL ? *softmax_param_ : *default_instance_->softmax_param_; -} -inline ::caffe::SoftmaxParameter* V1LayerParameter::mutable_softmax_param() { - set_has_softmax_param(); - if (softmax_param_ == NULL) softmax_param_ = new ::caffe::SoftmaxParameter; - return softmax_param_; -} -inline ::caffe::SoftmaxParameter* V1LayerParameter::release_softmax_param() { - clear_has_softmax_param(); - ::caffe::SoftmaxParameter* temp = softmax_param_; - softmax_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_softmax_param(::caffe::SoftmaxParameter* softmax_param) { - delete softmax_param_; - softmax_param_ = softmax_param; - if (softmax_param) { - set_has_softmax_param(); - } else { - clear_has_softmax_param(); - } -} - -// optional .caffe.SliceParameter slice_param = 31; -inline bool V1LayerParameter::has_slice_param() const { - return (_has_bits_[1] & 0x00000010u) != 0; -} -inline void V1LayerParameter::set_has_slice_param() { - _has_bits_[1] |= 0x00000010u; -} -inline void V1LayerParameter::clear_has_slice_param() { - _has_bits_[1] &= ~0x00000010u; -} -inline void V1LayerParameter::clear_slice_param() { - if (slice_param_ != NULL) slice_param_->::caffe::SliceParameter::Clear(); - clear_has_slice_param(); -} -inline const ::caffe::SliceParameter& V1LayerParameter::slice_param() const { - return slice_param_ != NULL ? *slice_param_ : *default_instance_->slice_param_; -} -inline ::caffe::SliceParameter* V1LayerParameter::mutable_slice_param() { - set_has_slice_param(); - if (slice_param_ == NULL) slice_param_ = new ::caffe::SliceParameter; - return slice_param_; -} -inline ::caffe::SliceParameter* V1LayerParameter::release_slice_param() { - clear_has_slice_param(); - ::caffe::SliceParameter* temp = slice_param_; - slice_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_slice_param(::caffe::SliceParameter* slice_param) { - delete slice_param_; - slice_param_ = slice_param; - if (slice_param) { - set_has_slice_param(); - } else { - clear_has_slice_param(); - } -} - -// optional .caffe.TanHParameter tanh_param = 37; -inline bool V1LayerParameter::has_tanh_param() const { - return (_has_bits_[1] & 0x00000020u) != 0; -} -inline void V1LayerParameter::set_has_tanh_param() { - _has_bits_[1] |= 0x00000020u; -} -inline void V1LayerParameter::clear_has_tanh_param() { - _has_bits_[1] &= ~0x00000020u; -} -inline void V1LayerParameter::clear_tanh_param() { - if (tanh_param_ != NULL) tanh_param_->::caffe::TanHParameter::Clear(); - clear_has_tanh_param(); -} -inline const ::caffe::TanHParameter& V1LayerParameter::tanh_param() const { - return tanh_param_ != NULL ? *tanh_param_ : *default_instance_->tanh_param_; -} -inline ::caffe::TanHParameter* V1LayerParameter::mutable_tanh_param() { - set_has_tanh_param(); - if (tanh_param_ == NULL) tanh_param_ = new ::caffe::TanHParameter; - return tanh_param_; -} -inline ::caffe::TanHParameter* V1LayerParameter::release_tanh_param() { - clear_has_tanh_param(); - ::caffe::TanHParameter* temp = tanh_param_; - tanh_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_tanh_param(::caffe::TanHParameter* tanh_param) { - delete tanh_param_; - tanh_param_ = tanh_param; - if (tanh_param) { - set_has_tanh_param(); - } else { - clear_has_tanh_param(); - } -} - -// optional .caffe.ThresholdParameter threshold_param = 25; -inline bool V1LayerParameter::has_threshold_param() const { - return (_has_bits_[1] & 0x00000040u) != 0; -} -inline void V1LayerParameter::set_has_threshold_param() { - _has_bits_[1] |= 0x00000040u; -} -inline void V1LayerParameter::clear_has_threshold_param() { - _has_bits_[1] &= ~0x00000040u; -} -inline void V1LayerParameter::clear_threshold_param() { - if (threshold_param_ != NULL) threshold_param_->::caffe::ThresholdParameter::Clear(); - clear_has_threshold_param(); -} -inline const ::caffe::ThresholdParameter& V1LayerParameter::threshold_param() const { - return threshold_param_ != NULL ? *threshold_param_ : *default_instance_->threshold_param_; -} -inline ::caffe::ThresholdParameter* V1LayerParameter::mutable_threshold_param() { - set_has_threshold_param(); - if (threshold_param_ == NULL) threshold_param_ = new ::caffe::ThresholdParameter; - return threshold_param_; -} -inline ::caffe::ThresholdParameter* V1LayerParameter::release_threshold_param() { - clear_has_threshold_param(); - ::caffe::ThresholdParameter* temp = threshold_param_; - threshold_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_threshold_param(::caffe::ThresholdParameter* threshold_param) { - delete threshold_param_; - threshold_param_ = threshold_param; - if (threshold_param) { - set_has_threshold_param(); - } else { - clear_has_threshold_param(); - } -} - -// optional .caffe.WindowDataParameter window_data_param = 20; -inline bool V1LayerParameter::has_window_data_param() const { - return (_has_bits_[1] & 0x00000080u) != 0; -} -inline void V1LayerParameter::set_has_window_data_param() { - _has_bits_[1] |= 0x00000080u; -} -inline void V1LayerParameter::clear_has_window_data_param() { - _has_bits_[1] &= ~0x00000080u; -} -inline void V1LayerParameter::clear_window_data_param() { - if (window_data_param_ != NULL) window_data_param_->::caffe::WindowDataParameter::Clear(); - clear_has_window_data_param(); -} -inline const ::caffe::WindowDataParameter& V1LayerParameter::window_data_param() const { - return window_data_param_ != NULL ? *window_data_param_ : *default_instance_->window_data_param_; -} -inline ::caffe::WindowDataParameter* V1LayerParameter::mutable_window_data_param() { - set_has_window_data_param(); - if (window_data_param_ == NULL) window_data_param_ = new ::caffe::WindowDataParameter; - return window_data_param_; -} -inline ::caffe::WindowDataParameter* V1LayerParameter::release_window_data_param() { - clear_has_window_data_param(); - ::caffe::WindowDataParameter* temp = window_data_param_; - window_data_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_window_data_param(::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(); - } -} - -// optional .caffe.TransformationParameter transform_param = 36; -inline bool V1LayerParameter::has_transform_param() const { - return (_has_bits_[1] & 0x00000100u) != 0; -} -inline void V1LayerParameter::set_has_transform_param() { - _has_bits_[1] |= 0x00000100u; -} -inline void V1LayerParameter::clear_has_transform_param() { - _has_bits_[1] &= ~0x00000100u; -} -inline void V1LayerParameter::clear_transform_param() { - if (transform_param_ != NULL) transform_param_->::caffe::TransformationParameter::Clear(); - clear_has_transform_param(); -} -inline const ::caffe::TransformationParameter& V1LayerParameter::transform_param() const { - return transform_param_ != NULL ? *transform_param_ : *default_instance_->transform_param_; -} -inline ::caffe::TransformationParameter* V1LayerParameter::mutable_transform_param() { - set_has_transform_param(); - if (transform_param_ == NULL) transform_param_ = new ::caffe::TransformationParameter; - return transform_param_; -} -inline ::caffe::TransformationParameter* V1LayerParameter::release_transform_param() { - clear_has_transform_param(); - ::caffe::TransformationParameter* temp = transform_param_; - transform_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_transform_param(::caffe::TransformationParameter* transform_param) { - delete transform_param_; - transform_param_ = transform_param; - if (transform_param) { - set_has_transform_param(); - } else { - clear_has_transform_param(); - } -} - -// optional .caffe.LossParameter loss_param = 42; -inline bool V1LayerParameter::has_loss_param() const { - return (_has_bits_[1] & 0x00000200u) != 0; -} -inline void V1LayerParameter::set_has_loss_param() { - _has_bits_[1] |= 0x00000200u; -} -inline void V1LayerParameter::clear_has_loss_param() { - _has_bits_[1] &= ~0x00000200u; -} -inline void V1LayerParameter::clear_loss_param() { - if (loss_param_ != NULL) loss_param_->::caffe::LossParameter::Clear(); - clear_has_loss_param(); -} -inline const ::caffe::LossParameter& V1LayerParameter::loss_param() const { - return loss_param_ != NULL ? *loss_param_ : *default_instance_->loss_param_; -} -inline ::caffe::LossParameter* V1LayerParameter::mutable_loss_param() { - set_has_loss_param(); - if (loss_param_ == NULL) loss_param_ = new ::caffe::LossParameter; - return loss_param_; -} -inline ::caffe::LossParameter* V1LayerParameter::release_loss_param() { - clear_has_loss_param(); - ::caffe::LossParameter* temp = loss_param_; - loss_param_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_loss_param(::caffe::LossParameter* loss_param) { - delete loss_param_; - loss_param_ = loss_param; - if (loss_param) { - set_has_loss_param(); - } else { - clear_has_loss_param(); - } -} - -// optional .caffe.V0LayerParameter layer = 1; -inline bool V1LayerParameter::has_layer() const { - return (_has_bits_[1] & 0x00000400u) != 0; -} -inline void V1LayerParameter::set_has_layer() { - _has_bits_[1] |= 0x00000400u; -} -inline void V1LayerParameter::clear_has_layer() { - _has_bits_[1] &= ~0x00000400u; -} -inline void V1LayerParameter::clear_layer() { - if (layer_ != NULL) layer_->::caffe::V0LayerParameter::Clear(); - clear_has_layer(); -} -inline const ::caffe::V0LayerParameter& V1LayerParameter::layer() const { - return layer_ != NULL ? *layer_ : *default_instance_->layer_; -} -inline ::caffe::V0LayerParameter* V1LayerParameter::mutable_layer() { - set_has_layer(); - if (layer_ == NULL) layer_ = new ::caffe::V0LayerParameter; - return layer_; -} -inline ::caffe::V0LayerParameter* V1LayerParameter::release_layer() { - clear_has_layer(); - ::caffe::V0LayerParameter* temp = layer_; - layer_ = NULL; - return temp; -} -inline void V1LayerParameter::set_allocated_layer(::caffe::V0LayerParameter* layer) { - delete layer_; - layer_ = layer; - if (layer) { - set_has_layer(); - } else { - clear_has_layer(); - } -} - -// ------------------------------------------------------------------- - -// V0LayerParameter - -// optional string name = 1; -inline bool V0LayerParameter::has_name() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void V0LayerParameter::set_has_name() { - _has_bits_[0] |= 0x00000001u; -} -inline void V0LayerParameter::clear_has_name() { - _has_bits_[0] &= ~0x00000001u; -} -inline void V0LayerParameter::clear_name() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - clear_has_name(); -} -inline const ::std::string& V0LayerParameter::name() const { - return *name_; -} -inline void V0LayerParameter::set_name(const ::std::string& value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void V0LayerParameter::set_name(const char* value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void V0LayerParameter::set_name(const char* value, size_t size) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(reinterpret_cast(value), size); -} -inline ::std::string* V0LayerParameter::mutable_name() { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - return name_; -} -inline ::std::string* V0LayerParameter::release_name() { - clear_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = name_; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void V0LayerParameter::set_allocated_name(::std::string* name) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (name) { - set_has_name(); - name_ = name; - } else { - clear_has_name(); - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional string type = 2; -inline bool V0LayerParameter::has_type() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void V0LayerParameter::set_has_type() { - _has_bits_[0] |= 0x00000002u; -} -inline void V0LayerParameter::clear_has_type() { - _has_bits_[0] &= ~0x00000002u; -} -inline void V0LayerParameter::clear_type() { - if (type_ != &::google::protobuf::internal::kEmptyString) { - type_->clear(); - } - clear_has_type(); -} -inline const ::std::string& V0LayerParameter::type() const { - return *type_; -} -inline void V0LayerParameter::set_type(const ::std::string& value) { - set_has_type(); - if (type_ == &::google::protobuf::internal::kEmptyString) { - type_ = new ::std::string; - } - type_->assign(value); -} -inline void V0LayerParameter::set_type(const char* value) { - set_has_type(); - if (type_ == &::google::protobuf::internal::kEmptyString) { - type_ = new ::std::string; - } - type_->assign(value); -} -inline void V0LayerParameter::set_type(const char* value, size_t size) { - set_has_type(); - if (type_ == &::google::protobuf::internal::kEmptyString) { - type_ = new ::std::string; - } - type_->assign(reinterpret_cast(value), size); -} -inline ::std::string* V0LayerParameter::mutable_type() { - set_has_type(); - if (type_ == &::google::protobuf::internal::kEmptyString) { - type_ = new ::std::string; - } - return type_; -} -inline ::std::string* V0LayerParameter::release_type() { - clear_has_type(); - if (type_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = type_; - type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void V0LayerParameter::set_allocated_type(::std::string* type) { - if (type_ != &::google::protobuf::internal::kEmptyString) { - delete type_; - } - if (type) { - set_has_type(); - type_ = type; - } else { - clear_has_type(); - type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional uint32 num_output = 3; -inline bool V0LayerParameter::has_num_output() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void V0LayerParameter::set_has_num_output() { - _has_bits_[0] |= 0x00000004u; -} -inline void V0LayerParameter::clear_has_num_output() { - _has_bits_[0] &= ~0x00000004u; -} -inline void V0LayerParameter::clear_num_output() { - num_output_ = 0u; - clear_has_num_output(); -} -inline ::google::protobuf::uint32 V0LayerParameter::num_output() const { - return num_output_; -} -inline void V0LayerParameter::set_num_output(::google::protobuf::uint32 value) { - set_has_num_output(); - num_output_ = value; -} - -// optional bool biasterm = 4 [default = true]; -inline bool V0LayerParameter::has_biasterm() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void V0LayerParameter::set_has_biasterm() { - _has_bits_[0] |= 0x00000008u; -} -inline void V0LayerParameter::clear_has_biasterm() { - _has_bits_[0] &= ~0x00000008u; -} -inline void V0LayerParameter::clear_biasterm() { - biasterm_ = true; - clear_has_biasterm(); -} -inline bool V0LayerParameter::biasterm() const { - return biasterm_; -} -inline void V0LayerParameter::set_biasterm(bool value) { - set_has_biasterm(); - biasterm_ = value; -} - -// optional .caffe.FillerParameter weight_filler = 5; -inline bool V0LayerParameter::has_weight_filler() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void V0LayerParameter::set_has_weight_filler() { - _has_bits_[0] |= 0x00000010u; -} -inline void V0LayerParameter::clear_has_weight_filler() { - _has_bits_[0] &= ~0x00000010u; -} -inline void V0LayerParameter::clear_weight_filler() { - if (weight_filler_ != NULL) weight_filler_->::caffe::FillerParameter::Clear(); - clear_has_weight_filler(); -} -inline const ::caffe::FillerParameter& V0LayerParameter::weight_filler() const { - return weight_filler_ != NULL ? *weight_filler_ : *default_instance_->weight_filler_; -} -inline ::caffe::FillerParameter* V0LayerParameter::mutable_weight_filler() { - set_has_weight_filler(); - if (weight_filler_ == NULL) weight_filler_ = new ::caffe::FillerParameter; - return weight_filler_; -} -inline ::caffe::FillerParameter* V0LayerParameter::release_weight_filler() { - clear_has_weight_filler(); - ::caffe::FillerParameter* temp = weight_filler_; - weight_filler_ = NULL; - return temp; -} -inline void V0LayerParameter::set_allocated_weight_filler(::caffe::FillerParameter* weight_filler) { - delete weight_filler_; - weight_filler_ = weight_filler; - if (weight_filler) { - set_has_weight_filler(); - } else { - clear_has_weight_filler(); - } -} - -// optional .caffe.FillerParameter bias_filler = 6; -inline bool V0LayerParameter::has_bias_filler() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void V0LayerParameter::set_has_bias_filler() { - _has_bits_[0] |= 0x00000020u; -} -inline void V0LayerParameter::clear_has_bias_filler() { - _has_bits_[0] &= ~0x00000020u; -} -inline void V0LayerParameter::clear_bias_filler() { - if (bias_filler_ != NULL) bias_filler_->::caffe::FillerParameter::Clear(); - clear_has_bias_filler(); -} -inline const ::caffe::FillerParameter& V0LayerParameter::bias_filler() const { - return bias_filler_ != NULL ? *bias_filler_ : *default_instance_->bias_filler_; -} -inline ::caffe::FillerParameter* V0LayerParameter::mutable_bias_filler() { - set_has_bias_filler(); - if (bias_filler_ == NULL) bias_filler_ = new ::caffe::FillerParameter; - return bias_filler_; -} -inline ::caffe::FillerParameter* V0LayerParameter::release_bias_filler() { - clear_has_bias_filler(); - ::caffe::FillerParameter* temp = bias_filler_; - bias_filler_ = NULL; - return temp; -} -inline void V0LayerParameter::set_allocated_bias_filler(::caffe::FillerParameter* bias_filler) { - delete bias_filler_; - bias_filler_ = bias_filler; - if (bias_filler) { - set_has_bias_filler(); - } else { - clear_has_bias_filler(); - } -} - -// optional uint32 pad = 7 [default = 0]; -inline bool V0LayerParameter::has_pad() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void V0LayerParameter::set_has_pad() { - _has_bits_[0] |= 0x00000040u; -} -inline void V0LayerParameter::clear_has_pad() { - _has_bits_[0] &= ~0x00000040u; -} -inline void V0LayerParameter::clear_pad() { - pad_ = 0u; - clear_has_pad(); -} -inline ::google::protobuf::uint32 V0LayerParameter::pad() const { - return pad_; -} -inline void V0LayerParameter::set_pad(::google::protobuf::uint32 value) { - set_has_pad(); - pad_ = value; -} - -// optional uint32 kernelsize = 8; -inline bool V0LayerParameter::has_kernelsize() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -inline void V0LayerParameter::set_has_kernelsize() { - _has_bits_[0] |= 0x00000080u; -} -inline void V0LayerParameter::clear_has_kernelsize() { - _has_bits_[0] &= ~0x00000080u; -} -inline void V0LayerParameter::clear_kernelsize() { - kernelsize_ = 0u; - clear_has_kernelsize(); -} -inline ::google::protobuf::uint32 V0LayerParameter::kernelsize() const { - return kernelsize_; -} -inline void V0LayerParameter::set_kernelsize(::google::protobuf::uint32 value) { - set_has_kernelsize(); - kernelsize_ = value; -} - -// optional uint32 group = 9 [default = 1]; -inline bool V0LayerParameter::has_group() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -inline void V0LayerParameter::set_has_group() { - _has_bits_[0] |= 0x00000100u; -} -inline void V0LayerParameter::clear_has_group() { - _has_bits_[0] &= ~0x00000100u; -} -inline void V0LayerParameter::clear_group() { - group_ = 1u; - clear_has_group(); -} -inline ::google::protobuf::uint32 V0LayerParameter::group() const { - return group_; -} -inline void V0LayerParameter::set_group(::google::protobuf::uint32 value) { - set_has_group(); - group_ = value; -} - -// optional uint32 stride = 10 [default = 1]; -inline bool V0LayerParameter::has_stride() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -inline void V0LayerParameter::set_has_stride() { - _has_bits_[0] |= 0x00000200u; -} -inline void V0LayerParameter::clear_has_stride() { - _has_bits_[0] &= ~0x00000200u; -} -inline void V0LayerParameter::clear_stride() { - stride_ = 1u; - clear_has_stride(); -} -inline ::google::protobuf::uint32 V0LayerParameter::stride() const { - return stride_; -} -inline void V0LayerParameter::set_stride(::google::protobuf::uint32 value) { - set_has_stride(); - stride_ = value; -} - -// optional .caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX]; -inline bool V0LayerParameter::has_pool() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -inline void V0LayerParameter::set_has_pool() { - _has_bits_[0] |= 0x00000400u; -} -inline void V0LayerParameter::clear_has_pool() { - _has_bits_[0] &= ~0x00000400u; -} -inline void V0LayerParameter::clear_pool() { - pool_ = 0; - clear_has_pool(); -} -inline ::caffe::V0LayerParameter_PoolMethod V0LayerParameter::pool() const { - return static_cast< ::caffe::V0LayerParameter_PoolMethod >(pool_); -} -inline void V0LayerParameter::set_pool(::caffe::V0LayerParameter_PoolMethod value) { - assert(::caffe::V0LayerParameter_PoolMethod_IsValid(value)); - set_has_pool(); - pool_ = value; -} - -// optional float dropout_ratio = 12 [default = 0.5]; -inline bool V0LayerParameter::has_dropout_ratio() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -inline void V0LayerParameter::set_has_dropout_ratio() { - _has_bits_[0] |= 0x00000800u; -} -inline void V0LayerParameter::clear_has_dropout_ratio() { - _has_bits_[0] &= ~0x00000800u; -} -inline void V0LayerParameter::clear_dropout_ratio() { - dropout_ratio_ = 0.5f; - clear_has_dropout_ratio(); -} -inline float V0LayerParameter::dropout_ratio() const { - return dropout_ratio_; -} -inline void V0LayerParameter::set_dropout_ratio(float value) { - set_has_dropout_ratio(); - dropout_ratio_ = value; -} - -// optional uint32 local_size = 13 [default = 5]; -inline bool V0LayerParameter::has_local_size() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -inline void V0LayerParameter::set_has_local_size() { - _has_bits_[0] |= 0x00001000u; -} -inline void V0LayerParameter::clear_has_local_size() { - _has_bits_[0] &= ~0x00001000u; -} -inline void V0LayerParameter::clear_local_size() { - local_size_ = 5u; - clear_has_local_size(); -} -inline ::google::protobuf::uint32 V0LayerParameter::local_size() const { - return local_size_; -} -inline void V0LayerParameter::set_local_size(::google::protobuf::uint32 value) { - set_has_local_size(); - local_size_ = value; -} - -// optional float alpha = 14 [default = 1]; -inline bool V0LayerParameter::has_alpha() const { - return (_has_bits_[0] & 0x00002000u) != 0; -} -inline void V0LayerParameter::set_has_alpha() { - _has_bits_[0] |= 0x00002000u; -} -inline void V0LayerParameter::clear_has_alpha() { - _has_bits_[0] &= ~0x00002000u; -} -inline void V0LayerParameter::clear_alpha() { - alpha_ = 1; - clear_has_alpha(); -} -inline float V0LayerParameter::alpha() const { - return alpha_; -} -inline void V0LayerParameter::set_alpha(float value) { - set_has_alpha(); - alpha_ = value; -} - -// optional float beta = 15 [default = 0.75]; -inline bool V0LayerParameter::has_beta() const { - return (_has_bits_[0] & 0x00004000u) != 0; -} -inline void V0LayerParameter::set_has_beta() { - _has_bits_[0] |= 0x00004000u; -} -inline void V0LayerParameter::clear_has_beta() { - _has_bits_[0] &= ~0x00004000u; -} -inline void V0LayerParameter::clear_beta() { - beta_ = 0.75f; - clear_has_beta(); -} -inline float V0LayerParameter::beta() const { - return beta_; -} -inline void V0LayerParameter::set_beta(float value) { - set_has_beta(); - beta_ = value; -} - -// optional float k = 22 [default = 1]; -inline bool V0LayerParameter::has_k() const { - return (_has_bits_[0] & 0x00008000u) != 0; -} -inline void V0LayerParameter::set_has_k() { - _has_bits_[0] |= 0x00008000u; -} -inline void V0LayerParameter::clear_has_k() { - _has_bits_[0] &= ~0x00008000u; -} -inline void V0LayerParameter::clear_k() { - k_ = 1; - clear_has_k(); -} -inline float V0LayerParameter::k() const { - return k_; -} -inline void V0LayerParameter::set_k(float value) { - set_has_k(); - k_ = value; -} - -// optional string source = 16; -inline bool V0LayerParameter::has_source() const { - return (_has_bits_[0] & 0x00010000u) != 0; -} -inline void V0LayerParameter::set_has_source() { - _has_bits_[0] |= 0x00010000u; -} -inline void V0LayerParameter::clear_has_source() { - _has_bits_[0] &= ~0x00010000u; -} -inline void V0LayerParameter::clear_source() { - if (source_ != &::google::protobuf::internal::kEmptyString) { - source_->clear(); - } - clear_has_source(); -} -inline const ::std::string& V0LayerParameter::source() const { - return *source_; -} -inline void V0LayerParameter::set_source(const ::std::string& value) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(value); -} -inline void V0LayerParameter::set_source(const char* value) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(value); -} -inline void V0LayerParameter::set_source(const char* value, size_t size) { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - source_->assign(reinterpret_cast(value), size); -} -inline ::std::string* V0LayerParameter::mutable_source() { - set_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - source_ = new ::std::string; - } - return source_; -} -inline ::std::string* V0LayerParameter::release_source() { - clear_has_source(); - if (source_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = source_; - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void V0LayerParameter::set_allocated_source(::std::string* source) { - if (source_ != &::google::protobuf::internal::kEmptyString) { - delete source_; - } - if (source) { - set_has_source(); - source_ = source; - } else { - clear_has_source(); - source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional float scale = 17 [default = 1]; -inline bool V0LayerParameter::has_scale() const { - return (_has_bits_[0] & 0x00020000u) != 0; -} -inline void V0LayerParameter::set_has_scale() { - _has_bits_[0] |= 0x00020000u; -} -inline void V0LayerParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00020000u; -} -inline void V0LayerParameter::clear_scale() { - scale_ = 1; - clear_has_scale(); -} -inline float V0LayerParameter::scale() const { - return scale_; -} -inline void V0LayerParameter::set_scale(float value) { - set_has_scale(); - scale_ = value; -} - -// optional string meanfile = 18; -inline bool V0LayerParameter::has_meanfile() const { - return (_has_bits_[0] & 0x00040000u) != 0; -} -inline void V0LayerParameter::set_has_meanfile() { - _has_bits_[0] |= 0x00040000u; -} -inline void V0LayerParameter::clear_has_meanfile() { - _has_bits_[0] &= ~0x00040000u; -} -inline void V0LayerParameter::clear_meanfile() { - if (meanfile_ != &::google::protobuf::internal::kEmptyString) { - meanfile_->clear(); - } - clear_has_meanfile(); -} -inline const ::std::string& V0LayerParameter::meanfile() const { - return *meanfile_; -} -inline void V0LayerParameter::set_meanfile(const ::std::string& value) { - set_has_meanfile(); - if (meanfile_ == &::google::protobuf::internal::kEmptyString) { - meanfile_ = new ::std::string; - } - meanfile_->assign(value); -} -inline void V0LayerParameter::set_meanfile(const char* value) { - set_has_meanfile(); - if (meanfile_ == &::google::protobuf::internal::kEmptyString) { - meanfile_ = new ::std::string; - } - meanfile_->assign(value); -} -inline void V0LayerParameter::set_meanfile(const char* value, size_t size) { - set_has_meanfile(); - if (meanfile_ == &::google::protobuf::internal::kEmptyString) { - meanfile_ = new ::std::string; - } - meanfile_->assign(reinterpret_cast(value), size); -} -inline ::std::string* V0LayerParameter::mutable_meanfile() { - set_has_meanfile(); - if (meanfile_ == &::google::protobuf::internal::kEmptyString) { - meanfile_ = new ::std::string; - } - return meanfile_; -} -inline ::std::string* V0LayerParameter::release_meanfile() { - clear_has_meanfile(); - if (meanfile_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = meanfile_; - meanfile_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void V0LayerParameter::set_allocated_meanfile(::std::string* meanfile) { - if (meanfile_ != &::google::protobuf::internal::kEmptyString) { - delete meanfile_; - } - if (meanfile) { - set_has_meanfile(); - meanfile_ = meanfile; - } else { - clear_has_meanfile(); - meanfile_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional uint32 batchsize = 19; -inline bool V0LayerParameter::has_batchsize() const { - return (_has_bits_[0] & 0x00080000u) != 0; -} -inline void V0LayerParameter::set_has_batchsize() { - _has_bits_[0] |= 0x00080000u; -} -inline void V0LayerParameter::clear_has_batchsize() { - _has_bits_[0] &= ~0x00080000u; -} -inline void V0LayerParameter::clear_batchsize() { - batchsize_ = 0u; - clear_has_batchsize(); -} -inline ::google::protobuf::uint32 V0LayerParameter::batchsize() const { - return batchsize_; -} -inline void V0LayerParameter::set_batchsize(::google::protobuf::uint32 value) { - set_has_batchsize(); - batchsize_ = value; -} - -// optional uint32 cropsize = 20 [default = 0]; -inline bool V0LayerParameter::has_cropsize() const { - return (_has_bits_[0] & 0x00100000u) != 0; -} -inline void V0LayerParameter::set_has_cropsize() { - _has_bits_[0] |= 0x00100000u; -} -inline void V0LayerParameter::clear_has_cropsize() { - _has_bits_[0] &= ~0x00100000u; -} -inline void V0LayerParameter::clear_cropsize() { - cropsize_ = 0u; - clear_has_cropsize(); -} -inline ::google::protobuf::uint32 V0LayerParameter::cropsize() const { - return cropsize_; -} -inline void V0LayerParameter::set_cropsize(::google::protobuf::uint32 value) { - set_has_cropsize(); - cropsize_ = value; -} - -// optional bool mirror = 21 [default = false]; -inline bool V0LayerParameter::has_mirror() const { - return (_has_bits_[0] & 0x00200000u) != 0; -} -inline void V0LayerParameter::set_has_mirror() { - _has_bits_[0] |= 0x00200000u; -} -inline void V0LayerParameter::clear_has_mirror() { - _has_bits_[0] &= ~0x00200000u; -} -inline void V0LayerParameter::clear_mirror() { - mirror_ = false; - clear_has_mirror(); -} -inline bool V0LayerParameter::mirror() const { - return mirror_; -} -inline void V0LayerParameter::set_mirror(bool value) { - set_has_mirror(); - mirror_ = value; -} - -// repeated .caffe.BlobProto blobs = 50; -inline int V0LayerParameter::blobs_size() const { - return blobs_.size(); -} -inline void V0LayerParameter::clear_blobs() { - blobs_.Clear(); -} -inline const ::caffe::BlobProto& V0LayerParameter::blobs(int index) const { - return blobs_.Get(index); -} -inline ::caffe::BlobProto* V0LayerParameter::mutable_blobs(int index) { - return blobs_.Mutable(index); -} -inline ::caffe::BlobProto* V0LayerParameter::add_blobs() { - return blobs_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >& -V0LayerParameter::blobs() const { - return blobs_; -} -inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >* -V0LayerParameter::mutable_blobs() { - return &blobs_; -} - -// repeated float blobs_lr = 51; -inline int V0LayerParameter::blobs_lr_size() const { - return blobs_lr_.size(); -} -inline void V0LayerParameter::clear_blobs_lr() { - blobs_lr_.Clear(); -} -inline float V0LayerParameter::blobs_lr(int index) const { - return blobs_lr_.Get(index); -} -inline void V0LayerParameter::set_blobs_lr(int index, float value) { - blobs_lr_.Set(index, value); -} -inline void V0LayerParameter::add_blobs_lr(float value) { - blobs_lr_.Add(value); -} -inline const ::google::protobuf::RepeatedField< float >& -V0LayerParameter::blobs_lr() const { - return blobs_lr_; -} -inline ::google::protobuf::RepeatedField< float >* -V0LayerParameter::mutable_blobs_lr() { - return &blobs_lr_; -} - -// repeated float weight_decay = 52; -inline int V0LayerParameter::weight_decay_size() const { - return weight_decay_.size(); -} -inline void V0LayerParameter::clear_weight_decay() { - weight_decay_.Clear(); -} -inline float V0LayerParameter::weight_decay(int index) const { - return weight_decay_.Get(index); -} -inline void V0LayerParameter::set_weight_decay(int index, float value) { - weight_decay_.Set(index, value); -} -inline void V0LayerParameter::add_weight_decay(float value) { - weight_decay_.Add(value); -} -inline const ::google::protobuf::RepeatedField< float >& -V0LayerParameter::weight_decay() const { - return weight_decay_; -} -inline ::google::protobuf::RepeatedField< float >* -V0LayerParameter::mutable_weight_decay() { - return &weight_decay_; -} - -// optional uint32 rand_skip = 53 [default = 0]; -inline bool V0LayerParameter::has_rand_skip() const { - return (_has_bits_[0] & 0x02000000u) != 0; -} -inline void V0LayerParameter::set_has_rand_skip() { - _has_bits_[0] |= 0x02000000u; -} -inline void V0LayerParameter::clear_has_rand_skip() { - _has_bits_[0] &= ~0x02000000u; -} -inline void V0LayerParameter::clear_rand_skip() { - rand_skip_ = 0u; - clear_has_rand_skip(); -} -inline ::google::protobuf::uint32 V0LayerParameter::rand_skip() const { - return rand_skip_; -} -inline void V0LayerParameter::set_rand_skip(::google::protobuf::uint32 value) { - set_has_rand_skip(); - rand_skip_ = value; -} - -// optional float det_fg_threshold = 54 [default = 0.5]; -inline bool V0LayerParameter::has_det_fg_threshold() const { - return (_has_bits_[0] & 0x04000000u) != 0; -} -inline void V0LayerParameter::set_has_det_fg_threshold() { - _has_bits_[0] |= 0x04000000u; -} -inline void V0LayerParameter::clear_has_det_fg_threshold() { - _has_bits_[0] &= ~0x04000000u; -} -inline void V0LayerParameter::clear_det_fg_threshold() { - det_fg_threshold_ = 0.5f; - clear_has_det_fg_threshold(); -} -inline float V0LayerParameter::det_fg_threshold() const { - return det_fg_threshold_; -} -inline void V0LayerParameter::set_det_fg_threshold(float value) { - set_has_det_fg_threshold(); - det_fg_threshold_ = value; -} - -// optional float det_bg_threshold = 55 [default = 0.5]; -inline bool V0LayerParameter::has_det_bg_threshold() const { - return (_has_bits_[0] & 0x08000000u) != 0; -} -inline void V0LayerParameter::set_has_det_bg_threshold() { - _has_bits_[0] |= 0x08000000u; -} -inline void V0LayerParameter::clear_has_det_bg_threshold() { - _has_bits_[0] &= ~0x08000000u; -} -inline void V0LayerParameter::clear_det_bg_threshold() { - det_bg_threshold_ = 0.5f; - clear_has_det_bg_threshold(); -} -inline float V0LayerParameter::det_bg_threshold() const { - return det_bg_threshold_; -} -inline void V0LayerParameter::set_det_bg_threshold(float value) { - set_has_det_bg_threshold(); - det_bg_threshold_ = value; -} - -// optional float det_fg_fraction = 56 [default = 0.25]; -inline bool V0LayerParameter::has_det_fg_fraction() const { - return (_has_bits_[0] & 0x10000000u) != 0; -} -inline void V0LayerParameter::set_has_det_fg_fraction() { - _has_bits_[0] |= 0x10000000u; -} -inline void V0LayerParameter::clear_has_det_fg_fraction() { - _has_bits_[0] &= ~0x10000000u; -} -inline void V0LayerParameter::clear_det_fg_fraction() { - det_fg_fraction_ = 0.25f; - clear_has_det_fg_fraction(); -} -inline float V0LayerParameter::det_fg_fraction() const { - return det_fg_fraction_; -} -inline void V0LayerParameter::set_det_fg_fraction(float value) { - set_has_det_fg_fraction(); - det_fg_fraction_ = value; -} - -// optional uint32 det_context_pad = 58 [default = 0]; -inline bool V0LayerParameter::has_det_context_pad() const { - return (_has_bits_[0] & 0x20000000u) != 0; -} -inline void V0LayerParameter::set_has_det_context_pad() { - _has_bits_[0] |= 0x20000000u; -} -inline void V0LayerParameter::clear_has_det_context_pad() { - _has_bits_[0] &= ~0x20000000u; -} -inline void V0LayerParameter::clear_det_context_pad() { - det_context_pad_ = 0u; - clear_has_det_context_pad(); -} -inline ::google::protobuf::uint32 V0LayerParameter::det_context_pad() const { - return det_context_pad_; -} -inline void V0LayerParameter::set_det_context_pad(::google::protobuf::uint32 value) { - set_has_det_context_pad(); - det_context_pad_ = value; -} - -// optional string det_crop_mode = 59 [default = "warp"]; -inline bool V0LayerParameter::has_det_crop_mode() const { - return (_has_bits_[0] & 0x40000000u) != 0; -} -inline void V0LayerParameter::set_has_det_crop_mode() { - _has_bits_[0] |= 0x40000000u; -} -inline void V0LayerParameter::clear_has_det_crop_mode() { - _has_bits_[0] &= ~0x40000000u; -} -inline void V0LayerParameter::clear_det_crop_mode() { - if (det_crop_mode_ != _default_det_crop_mode_) { - det_crop_mode_->assign(*_default_det_crop_mode_); - } - clear_has_det_crop_mode(); -} -inline const ::std::string& V0LayerParameter::det_crop_mode() const { - return *det_crop_mode_; -} -inline void V0LayerParameter::set_det_crop_mode(const ::std::string& value) { - set_has_det_crop_mode(); - if (det_crop_mode_ == _default_det_crop_mode_) { - det_crop_mode_ = new ::std::string; - } - det_crop_mode_->assign(value); -} -inline void V0LayerParameter::set_det_crop_mode(const char* value) { - set_has_det_crop_mode(); - if (det_crop_mode_ == _default_det_crop_mode_) { - det_crop_mode_ = new ::std::string; - } - det_crop_mode_->assign(value); -} -inline void V0LayerParameter::set_det_crop_mode(const char* value, size_t size) { - set_has_det_crop_mode(); - if (det_crop_mode_ == _default_det_crop_mode_) { - det_crop_mode_ = new ::std::string; - } - det_crop_mode_->assign(reinterpret_cast(value), size); -} -inline ::std::string* V0LayerParameter::mutable_det_crop_mode() { - set_has_det_crop_mode(); - if (det_crop_mode_ == _default_det_crop_mode_) { - det_crop_mode_ = new ::std::string(*_default_det_crop_mode_); - } - return det_crop_mode_; -} -inline ::std::string* V0LayerParameter::release_det_crop_mode() { - clear_has_det_crop_mode(); - if (det_crop_mode_ == _default_det_crop_mode_) { - return NULL; - } else { - ::std::string* temp = det_crop_mode_; - det_crop_mode_ = const_cast< ::std::string*>(_default_det_crop_mode_); - return temp; - } -} -inline void V0LayerParameter::set_allocated_det_crop_mode(::std::string* det_crop_mode) { - if (det_crop_mode_ != _default_det_crop_mode_) { - delete det_crop_mode_; - } - if (det_crop_mode) { - set_has_det_crop_mode(); - det_crop_mode_ = det_crop_mode; - } else { - clear_has_det_crop_mode(); - det_crop_mode_ = const_cast< ::std::string*>(_default_det_crop_mode_); - } -} - -// optional int32 new_num = 60 [default = 0]; -inline bool V0LayerParameter::has_new_num() const { - return (_has_bits_[0] & 0x80000000u) != 0; -} -inline void V0LayerParameter::set_has_new_num() { - _has_bits_[0] |= 0x80000000u; -} -inline void V0LayerParameter::clear_has_new_num() { - _has_bits_[0] &= ~0x80000000u; -} -inline void V0LayerParameter::clear_new_num() { - new_num_ = 0; - clear_has_new_num(); -} -inline ::google::protobuf::int32 V0LayerParameter::new_num() const { - return new_num_; -} -inline void V0LayerParameter::set_new_num(::google::protobuf::int32 value) { - set_has_new_num(); - new_num_ = value; -} - -// optional int32 new_channels = 61 [default = 0]; -inline bool V0LayerParameter::has_new_channels() const { - return (_has_bits_[1] & 0x00000001u) != 0; -} -inline void V0LayerParameter::set_has_new_channels() { - _has_bits_[1] |= 0x00000001u; -} -inline void V0LayerParameter::clear_has_new_channels() { - _has_bits_[1] &= ~0x00000001u; -} -inline void V0LayerParameter::clear_new_channels() { - new_channels_ = 0; - clear_has_new_channels(); -} -inline ::google::protobuf::int32 V0LayerParameter::new_channels() const { - return new_channels_; -} -inline void V0LayerParameter::set_new_channels(::google::protobuf::int32 value) { - set_has_new_channels(); - new_channels_ = value; -} - -// optional int32 new_height = 62 [default = 0]; -inline bool V0LayerParameter::has_new_height() const { - return (_has_bits_[1] & 0x00000002u) != 0; -} -inline void V0LayerParameter::set_has_new_height() { - _has_bits_[1] |= 0x00000002u; -} -inline void V0LayerParameter::clear_has_new_height() { - _has_bits_[1] &= ~0x00000002u; -} -inline void V0LayerParameter::clear_new_height() { - new_height_ = 0; - clear_has_new_height(); -} -inline ::google::protobuf::int32 V0LayerParameter::new_height() const { - return new_height_; -} -inline void V0LayerParameter::set_new_height(::google::protobuf::int32 value) { - set_has_new_height(); - new_height_ = value; -} - -// optional int32 new_width = 63 [default = 0]; -inline bool V0LayerParameter::has_new_width() const { - return (_has_bits_[1] & 0x00000004u) != 0; -} -inline void V0LayerParameter::set_has_new_width() { - _has_bits_[1] |= 0x00000004u; -} -inline void V0LayerParameter::clear_has_new_width() { - _has_bits_[1] &= ~0x00000004u; -} -inline void V0LayerParameter::clear_new_width() { - new_width_ = 0; - clear_has_new_width(); -} -inline ::google::protobuf::int32 V0LayerParameter::new_width() const { - return new_width_; -} -inline void V0LayerParameter::set_new_width(::google::protobuf::int32 value) { - set_has_new_width(); - new_width_ = value; -} - -// optional bool shuffle_images = 64 [default = false]; -inline bool V0LayerParameter::has_shuffle_images() const { - return (_has_bits_[1] & 0x00000008u) != 0; -} -inline void V0LayerParameter::set_has_shuffle_images() { - _has_bits_[1] |= 0x00000008u; -} -inline void V0LayerParameter::clear_has_shuffle_images() { - _has_bits_[1] &= ~0x00000008u; -} -inline void V0LayerParameter::clear_shuffle_images() { - shuffle_images_ = false; - clear_has_shuffle_images(); -} -inline bool V0LayerParameter::shuffle_images() const { - return shuffle_images_; -} -inline void V0LayerParameter::set_shuffle_images(bool value) { - set_has_shuffle_images(); - shuffle_images_ = value; -} - -// optional uint32 concat_dim = 65 [default = 1]; -inline bool V0LayerParameter::has_concat_dim() const { - return (_has_bits_[1] & 0x00000010u) != 0; -} -inline void V0LayerParameter::set_has_concat_dim() { - _has_bits_[1] |= 0x00000010u; -} -inline void V0LayerParameter::clear_has_concat_dim() { - _has_bits_[1] &= ~0x00000010u; -} -inline void V0LayerParameter::clear_concat_dim() { - concat_dim_ = 1u; - clear_has_concat_dim(); -} -inline ::google::protobuf::uint32 V0LayerParameter::concat_dim() const { - return concat_dim_; -} -inline void V0LayerParameter::set_concat_dim(::google::protobuf::uint32 value) { - set_has_concat_dim(); - concat_dim_ = value; -} - -// optional .caffe.HDF5OutputParameter hdf5_output_param = 1001; -inline bool V0LayerParameter::has_hdf5_output_param() const { - return (_has_bits_[1] & 0x00000020u) != 0; -} -inline void V0LayerParameter::set_has_hdf5_output_param() { - _has_bits_[1] |= 0x00000020u; -} -inline void V0LayerParameter::clear_has_hdf5_output_param() { - _has_bits_[1] &= ~0x00000020u; -} -inline void V0LayerParameter::clear_hdf5_output_param() { - if (hdf5_output_param_ != NULL) hdf5_output_param_->::caffe::HDF5OutputParameter::Clear(); - clear_has_hdf5_output_param(); -} -inline const ::caffe::HDF5OutputParameter& V0LayerParameter::hdf5_output_param() const { - return hdf5_output_param_ != NULL ? *hdf5_output_param_ : *default_instance_->hdf5_output_param_; -} -inline ::caffe::HDF5OutputParameter* V0LayerParameter::mutable_hdf5_output_param() { - set_has_hdf5_output_param(); - if (hdf5_output_param_ == NULL) hdf5_output_param_ = new ::caffe::HDF5OutputParameter; - return hdf5_output_param_; -} -inline ::caffe::HDF5OutputParameter* V0LayerParameter::release_hdf5_output_param() { - clear_has_hdf5_output_param(); - ::caffe::HDF5OutputParameter* temp = hdf5_output_param_; - hdf5_output_param_ = NULL; - return temp; -} -inline void V0LayerParameter::set_allocated_hdf5_output_param(::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(); - } -} - -// ------------------------------------------------------------------- - -// PReLUParameter - -// optional .caffe.FillerParameter filler = 1; -inline bool PReLUParameter::has_filler() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PReLUParameter::set_has_filler() { - _has_bits_[0] |= 0x00000001u; -} -inline void PReLUParameter::clear_has_filler() { - _has_bits_[0] &= ~0x00000001u; -} -inline void PReLUParameter::clear_filler() { - if (filler_ != NULL) filler_->::caffe::FillerParameter::Clear(); - clear_has_filler(); -} -inline const ::caffe::FillerParameter& PReLUParameter::filler() const { - return filler_ != NULL ? *filler_ : *default_instance_->filler_; -} -inline ::caffe::FillerParameter* PReLUParameter::mutable_filler() { - set_has_filler(); - if (filler_ == NULL) filler_ = new ::caffe::FillerParameter; - return filler_; -} -inline ::caffe::FillerParameter* PReLUParameter::release_filler() { - clear_has_filler(); - ::caffe::FillerParameter* temp = filler_; - filler_ = NULL; - return temp; -} -inline void PReLUParameter::set_allocated_filler(::caffe::FillerParameter* filler) { - delete filler_; - filler_ = filler; - if (filler) { - set_has_filler(); - } else { - clear_has_filler(); - } -} - -// optional bool channel_shared = 2 [default = false]; -inline bool PReLUParameter::has_channel_shared() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PReLUParameter::set_has_channel_shared() { - _has_bits_[0] |= 0x00000002u; -} -inline void PReLUParameter::clear_has_channel_shared() { - _has_bits_[0] &= ~0x00000002u; -} -inline void PReLUParameter::clear_channel_shared() { - channel_shared_ = false; - clear_has_channel_shared(); -} -inline bool PReLUParameter::channel_shared() const { - return channel_shared_; -} -inline void PReLUParameter::set_channel_shared(bool value) { - set_has_channel_shared(); - channel_shared_ = value; -} - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace caffe - -#ifndef SWIG -namespace google { -namespace protobuf { - -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::FillerParameter_VarianceNorm>() { - return ::caffe::FillerParameter_VarianceNorm_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::SolverParameter_SolverMode>() { - return ::caffe::SolverParameter_SolverMode_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::SolverParameter_SolverType>() { - return ::caffe::SolverParameter_SolverType_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::ParamSpec_DimCheckMode>() { - return ::caffe::ParamSpec_DimCheckMode_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::ConvolutionParameter_Engine>() { - return ::caffe::ConvolutionParameter_Engine_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::DataParameter_DB>() { - return ::caffe::DataParameter_DB_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::EltwiseParameter_EltwiseOp>() { - return ::caffe::EltwiseParameter_EltwiseOp_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::HingeLossParameter_Norm>() { - return ::caffe::HingeLossParameter_Norm_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::LRNParameter_NormRegion>() { - return ::caffe::LRNParameter_NormRegion_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::PoolingParameter_PoolMethod>() { - return ::caffe::PoolingParameter_PoolMethod_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::PoolingParameter_Engine>() { - return ::caffe::PoolingParameter_Engine_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::ReductionParameter_ReductionOp>() { - return ::caffe::ReductionParameter_ReductionOp_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::ReLUParameter_Engine>() { - return ::caffe::ReLUParameter_Engine_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::SigmoidParameter_Engine>() { - return ::caffe::SigmoidParameter_Engine_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::SoftmaxParameter_Engine>() { - return ::caffe::SoftmaxParameter_Engine_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::TanHParameter_Engine>() { - return ::caffe::TanHParameter_Engine_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::SPPParameter_PoolMethod>() { - return ::caffe::SPPParameter_PoolMethod_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::SPPParameter_Engine>() { - return ::caffe::SPPParameter_Engine_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::V1LayerParameter_LayerType>() { - return ::caffe::V1LayerParameter_LayerType_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::V1LayerParameter_DimCheckMode>() { - return ::caffe::V1LayerParameter_DimCheckMode_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::V0LayerParameter_PoolMethod>() { - return ::caffe::V0LayerParameter_PoolMethod_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::caffe::Phase>() { - return ::caffe::Phase_descriptor(); -} - -} // namespace google -} // namespace protobuf -#endif // SWIG - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_caffe_2eproto__INCLUDED diff --git a/modules/dnn/src/caffe/compiled/caffe.tar.gz b/modules/dnn/src/caffe/compiled/caffe.tar.gz new file mode 100644 index 000000000..c66784dc9 Binary files /dev/null and b/modules/dnn/src/caffe/compiled/caffe.tar.gz differ