Commit ff5da1c0 by BoxuanXu

replace file

1 parent e9af7534
#!/usr/bin/env python
#_*_ coding: UTF-8 _*_
import pymysql.cursors
import logging
import subprocess
from libpywrap import *
import requests
import threading
from converter import Run_Converter
from flask import Flask,request
from jenkinsapi.jenkins import Jenkins
import GProgress as GP
import Queue
__website__ = "www.seetatech.com"
__author__ = "seetatech"
__editor__ = "xuboxuan"
__Date__ = "20170807"
#Create an instance of the flask class
app = Flask(__name__)
#initlization fdfs_client
stbf_stcnf("/etc/fdfs/client.conf")
download_path="."
#be userd to jenkins
host = 'http://192.168.1.242:8080/'
modelid = ""
output_layer = ""
pool_id = ""
err_msg = ""
post_url = "http://192.168l.1.127:1234/API"
#post_url = "http://192.168.1.244:5000/result"
#init post info queue
Info_Queue = Queue.Queue()
#initlization the logging
logging.basicConfig(
level=logging.INFO,
format="[%(asctime)s] %(name)s:%(levelname)s: %(message)s"
)
db_atlas = pymysql.connect("192.168.1.127","defaultUser","magician","seetaAtlas",3306)
curl_atlas = db_atlas.cursor()
curl_atlas_exe = db_atlas.cursor()
def get_path_from_db(modelid,seetanet_model):
curl_atlas.execute("select path from seetaAtlas.model where id='%s'" % modelid)
result_atlas = curl_atlas.fetchall()
if len(result_atlas) != 1:
logging.info('get wrong mxnet model path')
return None,None
else:
path_name = str(result_atlas[0])
if path_name.find("|") == -1:
if path_name.find("::") == -1:
logging.info('get wrong parameters!')
return None,None
else:
path_list = path_name.split("::")
else:
path_list = path_name.split("|")
if len(path_list) != 2:
logging.info('get wrong parameters!')
else:
params_name_path = path_list[0]
params_name_path = params_name_path[2:len(params_name_path)]
#substr file name from path
params_name_index = params_name_path.rfind('/',0,len(path_list[0]))
params_name = params_name_path[params_name_index+1:len(path_list[0])]
graph_name_path = path_list[1]
graph_name_path = graph_name_path[0:len(graph_name_path)-3]
#substr file name from path
graph_name_index = graph_name_path.rfind('/',0,len(path_list[1]))
graph_name = graph_name_path[params_name_index+1:len(path_list[1])]
logging.info("The params's path is %s"% params_name_path)
logging.info("The model graph's path is %s"% graph_name_path)
#download file from fastdfs
if(stbf_down(params_name_path,download_path)):
logging.info("download params file: %s success" % params_name)
else:
return None,None
#download file from fastdfs
if(stbf_down(graph_name_path,download_path)):
logging.info("download params file: %s success" % graph_name)
else:
return None,None
#post return progress
GP.set_progress_var(10)
GP.Post_return()
#Driver converter model by params and model graph
result = Run_Converter(params_name,graph_name,seetanet_model)
if result is true:
return None,None
#Run_Converter("model-0015.params","model-symbol.json",seetanet_model)
return params_name,graph_name
def upload_filetoFastDFS(params_name, graph_name,seetanet_model):
#upload seetanet file to fastdfs
stmodel_fid = stbf_up(seetanet_model)
if(stmodel_fid):
logging.info("upload seetanet file success,seetanet model_id is %s" % stmodel_fid)
else:
logging.info("upload seetanet file failed!")
return None
return stmodel_fid
def get_info_from_queue(arg):
while 1:
if not Info_Queue.empty():
Info = Info_Queue.get()
logging.info("Begin Convert Info is : modelid = %s, output_layer = %s ,pool_id = %s" % (Info["modelid"],Info["output_layer"],Info["pool_id"]))
return_flag = "updateProgress"
modelid = Info["modelid"]
output_layer = Info["output_layer"]
pool_id = Info["pool_id"]
GP.set_pool_id_var(pool_id)
GP.set_err_msg_var("")
err_msg = ""
GP.set_post_type_var(return_flag)
try:
#post return progress
#GP.set_progress_var(10)
#GP.Post_return()
seetanet_model = "model_" + str(modelid) + ".data"
params_name,graph_name = get_path_from_db(modelid,seetanet_model)
if params_name is None or graph_name is None:
logging.info("get wrong params file")
err_msg = "get wrong params file"
return_flag = "error"
else:
stmodel_fid = upload_filetoFastDFS(params_name, graph_name,seetanet_model)
if stmodel_fid is None:
logging.info("upload filed")
err_msg = "upload filed"
return_flag = "error"
else:
#remove params file and graph file
try:
cmd_str = "rm -rf " + params_name + " " + graph_name + " " + seetanet_model
print(cmd_str)
subprocess.check_call(cmd_str,shell=True)
except subprocess.CalledProcessError as err:
logging.info("shell command error!")
err_msg = "shell command error!"
return_flag = "error"
logging.info("convert successfully!")
logging.info("Begin Run JenkIn!")
#GP.set_progress_var(90)
#GP.Post_return()
J = Jenkins(host, username='shenyizhong', password='shenyizhong')
job = J['SeetaNetLite-pro']
params = { "MODEL_ID": modelid, "OUTPUT_LAYER" : output_layer,"STMODEL_FID" : stmodel_fid}
r = job.invoke(block=True, build_params=params)
b = r.get_build()
logging.info('Finish JenkIn,build #: {} ,status : {}'.format(b.get_number(),b.get_status()))
if b.get_status() == "SUCCESS":
return_flag = "finish"
else:
err_msg = "JenkIn's Engine False"
return_flag = "error"
except Exception, e:
#GP.set_err_msg_var(repr(e))
#err_msg = repr(e)
err_msg = "unknown error from model convert!"
return_flag = "error"
finally:
GP.set_post_type_var(return_flag)
GP.set_err_msg_var(err_msg)
if return_flag == "finish":
GP.set_progress_var(100)
#post_return = { "posttype": return_flag, "progress" : 100, "pool_id": pool_id, "err_msg":err_msg }
else:
GP.set_progress_var(0)
#post_return = { "posttype": return_flag, "progress" : 0, "pool_id": pool_id, "err_msg":err_msg }
GP.Post_return()
t = threading.Thread(target=get_info_from_queue,args=(1,))
#get parameters and driver the transition function
@app.route('/convert',methods=['POST'])
def Dirver_Convert():
#get parameter modelid from post stream
return_flag = "false"
try:
modelid=request.form['modelid']
output_layer=request.form['output_layer']
pool_id=request.form['pool_id']
if modelid == '' or modelid == None or output_layer == '' or output_layer == None or pool_id == '' or output_layer == None:
logging.info("New Post Connect: get wrong parameter!")
return_flag = "false"
else:
return_flag = "true"
logging.info("New Post Connect: modelid : %s , post_url : %s, Queue size : %d" % (modelid,post_url,(Info_Queue.qsize() + 1)))
Post_Info = { "modelid": modelid, "output_layer" : output_layer,"pool_id" : pool_id}
Info_Queue.put(Post_Info)
if t.is_alive():
t.stop()
t = threading.Thread(target=get_info_from_queue,args=(1,))
t.start()
finally:
return return_flag
if __name__ == '__main__':
try:
t.start();
app.run(host='0.0.0.0')
finally:
curl_atlas_exe.close()
curl_atlas.close()
db_atlas.close()
stbf_rls()
#!/usr/bin/env python
#_*_ coding: UTF-8 _*_
__website__ = "www.seetatech.com"
__author__ = "seetatech"
__editor__ = "xuboxuan"
__Date__ = "20170812"
import requests
#post_url = "http://192.168l.1.170:1234/API"
post_url = "http://192.168.1.244:5000/result"
class GProgress_Var:
posttype = None;
progress = None;
pool_id = None;
err_msg = None;
def set_post_type_var(posttype):
GProgress_Var.posttype = posttype
def set_progress_var(progress):
GProgress_Var.progress = progress
def set_pool_id_var(pool_id):
GProgress_Var.pool_id = pool_id
def set_err_msg_var(err_msg):
GProgress_Var.err_msg = err_msg
def Post_return():
post_return = { "posttype": GProgress_Var.posttype, "progress" : GProgress_Var.progress, "pool_id": GProgress_Var.pool_id, "err_msg":GProgress_Var.err_msg }
requests.post(post_url, data=post_return)
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: HolidayCNN_proto.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='HolidayCNN_proto.proto',
package='',
serialized_pb=_b('\n\x16HolidayCNN_proto.proto\" \n\x11Holiday_BlobShape\x12\x0b\n\x03\x64im\x18\x01 \x03(\x03\"D\n\x11Holiday_BlobProto\x12!\n\x05shape\x18\x01 \x01(\x0b\x32\x12.Holiday_BlobShape\x12\x0c\n\x04\x64\x61ta\x18\x02 \x03(\x02\";\n\x16Holiday_PreluParameter\x12!\n\x05param\x18\x01 \x01(\x0b\x32\x12.Holiday_BlobProto\"8\n\x15Holiday_CropParameter\x12\x0f\n\x04\x61xis\x18\x01 \x01(\x05:\x01\x32\x12\x0e\n\x06offset\x18\x02 \x03(\r\"\xff\x02\n\x1cHoliday_ConvolutionParameter\x12&\n\nbias_param\x18\x01 \x01(\x0b\x32\x12.Holiday_BlobProto\x12(\n\x0ckernel_param\x18\x02 \x01(\x0b\x32\x12.Holiday_BlobProto\x12\x17\n\x0f\x64ilation_height\x18\x03 \x01(\r\x12\x16\n\x0e\x64ilation_width\x18\x04 \x01(\r\x12\x12\n\nnum_output\x18\x05 \x01(\r\x12\x15\n\npad_height\x18\x06 \x01(\r:\x01\x30\x12\x14\n\tpad_width\x18\x07 \x01(\r:\x01\x30\x12\x15\n\rkernel_height\x18\x08 \x01(\r\x12\x14\n\x0ckernel_width\x18\t \x01(\r\x12\x15\n\rstride_height\x18\n \x01(\r\x12\x14\n\x0cstride_width\x18\x0b \x01(\r\x12\x10\n\x05group\x18\x0c \x01(\r:\x01\x31\x12\x0f\n\x04\x61xis\x18\r \x01(\x05:\x01\x31\x12\x1e\n\x0f\x66orce_nd_im2col\x18\x0e \x01(\x08:\x05\x66\x61lse\"v\n\x1eHoliday_BatchNormliseParameter\x12&\n\nmean_param\x18\x01 \x01(\x0b\x32\x12.Holiday_BlobProto\x12,\n\x10\x63ovariance_param\x18\x02 \x01(\x0b\x32\x12.Holiday_BlobProto\"i\n\x16Holiday_ScaleParameter\x12\'\n\x0bscale_param\x18\x01 \x01(\x0b\x32\x12.Holiday_BlobProto\x12&\n\nbias_param\x18\x02 \x01(\x0b\x32\x12.Holiday_BlobProto\"A\n\x17Holiday_ConcatParameter\x12\x15\n\nconcat_dim\x18\x01 \x01(\r:\x01\x31\x12\x0f\n\x04\x61xis\x18\x02 \x01(\x05:\x01\x31\"\xaf\x01\n\x18Holiday_EltwiseParameter\x12;\n\toperation\x18\x01 \x01(\x0e\x32#.Holiday_EltwiseParameter.EltwiseOp:\x03SUM\x12\r\n\x05\x63oeff\x18\x02 \x03(\x02\x12\x1e\n\x10stable_prod_grad\x18\x03 \x01(\x08:\x04true\"\'\n\tEltwiseOp\x12\x08\n\x04PROD\x10\x00\x12\x07\n\x03SUM\x10\x01\x12\x07\n\x03MAX\x10\x02\"L\n\x14Holiday_ExpParameter\x12\x10\n\x04\x62\x61se\x18\x01 \x01(\x02:\x02-1\x12\x10\n\x05scale\x18\x02 \x01(\x02:\x01\x31\x12\x10\n\x05shift\x18\x03 \x01(\x02:\x01\x30\"\xb3\x02\n\"Holiday_MemoryDataParameterProcess\x12\x12\n\nbatch_size\x18\x01 \x01(\r\x12\x10\n\x08\x63hannels\x18\x02 \x01(\r\x12\x0e\n\x06height\x18\x03 \x01(\r\x12\r\n\x05width\x18\x04 \x01(\r\x12\x15\n\nnew_height\x18\x05 \x01(\r:\x01\x30\x12\x14\n\tnew_width\x18\x06 \x01(\r:\x01\x30\x12\x10\n\x05scale\x18\x07 \x01(\x02:\x01\x31\x12%\n\tmean_file\x18\x08 \x01(\x0b\x32\x12.Holiday_BlobProto\x12\x12\n\nmean_value\x18\t \x03(\x02\x12\x1b\n\x10\x63rop_size_height\x18\n \x01(\r:\x01\x30\x12\x1a\n\x0f\x63rop_size_width\x18\x0b \x01(\r:\x01\x30\x12\x15\n\rchannel_swaps\x18\x0c \x03(\r\"\xd7\x01\n\x1fHoliday_TransformationParameter\x12\x10\n\x05scale\x18\x01 \x01(\x02:\x01\x31\x12\x15\n\x06mirror\x18\x02 \x01(\x08:\x05\x66\x61lse\x12\x16\n\x0b\x63rop_height\x18\x03 \x01(\r:\x01\x30\x12\x15\n\ncrop_width\x18\x04 \x01(\r:\x01\x30\x12\x11\n\tmean_file\x18\x05 \x01(\t\x12\x12\n\nmean_value\x18\x06 \x03(\x02\x12\x1a\n\x0b\x66orce_color\x18\x07 \x01(\x08:\x05\x66\x61lse\x12\x19\n\nforce_gray\x18\x08 \x01(\x08:\x05\x66\x61lse\"\xaf\x01\n\x1dHoliday_InnerProductParameter\x12\x12\n\nnum_output\x18\x01 \x01(\r\x12\x0f\n\x04\x61xis\x18\x02 \x01(\x05:\x01\x31\x12\x18\n\ttranspose\x18\x03 \x01(\x08:\x05\x66\x61lse\x12&\n\nbias_param\x18\x04 \x01(\x0b\x32\x12.Holiday_BlobProto\x12\'\n\x0bInner_param\x18\x05 \x01(\x0b\x32\x12.Holiday_BlobProto\"\xe0\x01\n\x14Holiday_LRNParameter\x12\x15\n\nlocal_size\x18\x01 \x01(\r:\x01\x35\x12\x10\n\x05\x61lpha\x18\x02 \x01(\x02:\x01\x31\x12\x12\n\x04\x62\x65ta\x18\x03 \x01(\x02:\x04\x30.75\x12\x46\n\x0bnorm_region\x18\x04 \x01(\x0e\x32 .Holiday_LRNParameter.NormRegion:\x0f\x41\x43ROSS_CHANNELS\x12\x0c\n\x01k\x18\x05 \x01(\x02:\x01\x31\"5\n\nNormRegion\x12\x13\n\x0f\x41\x43ROSS_CHANNELS\x10\x00\x12\x12\n\x0eWITHIN_CHANNEL\x10\x01\"\xbf\x02\n\x18Holiday_PoolingParameter\x12\x37\n\x04pool\x18\x01 \x01(\x0e\x32$.Holiday_PoolingParameter.PoolMethod:\x03MAX\x12\x15\n\npad_height\x18\x02 \x01(\r:\x01\x30\x12\x14\n\tpad_width\x18\x03 \x01(\r:\x01\x30\x12\x15\n\rkernel_height\x18\x04 \x01(\r\x12\x14\n\x0ckernel_width\x18\x05 \x01(\r\x12\x15\n\rstride_height\x18\x06 \x01(\r\x12\x14\n\x0cstride_width\x18\x07 \x01(\r\x12\x1d\n\x0eglobal_pooling\x18\x08 \x01(\x08:\x05\x66\x61lse\x12\x14\n\x05valid\x18\t \x01(\x08:\x05\x66\x61lse\".\n\nPoolMethod\x12\x07\n\x03MAX\x10\x00\x12\x07\n\x03\x41VE\x10\x01\x12\x0e\n\nSTOCHASTIC\x10\x02\"N\n\x16Holiday_PowerParameter\x12\x10\n\x05power\x18\x01 \x01(\x02:\x01\x31\x12\x10\n\x05scale\x18\x02 \x01(\x02:\x01\x31\x12\x10\n\x05shift\x18\x03 \x01(\x02:\x01\x30\"2\n\x15Holiday_ReLUParameter\x12\x19\n\x0enegative_slope\x18\x01 \x01(\x02:\x01\x30\"+\n\x18Holiday_SoftmaxParameter\x12\x0f\n\x04\x61xis\x18\x01 \x01(\x05:\x01\x31\"T\n\x16Holiday_SliceParameter\x12\x0f\n\x04\x61xis\x18\x01 \x01(\x05:\x01\x31\x12\x13\n\x0bslice_point\x18\x02 \x03(\r\x12\x14\n\tslice_dim\x18\x03 \x01(\r:\x01\x31\"\xd8\x07\n\x16Holiday_LayerParameter\x12\x0e\n\x06\x62ottom\x18\x01 \x03(\t\x12\x0b\n\x03top\x18\x02 \x03(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x0c\n\x04type\x18\x04 \x01(\r\x12\x11\n\ttop_index\x18\x05 \x03(\r\x12\x14\n\x0c\x62ottom_index\x18\x06 \x03(\r\x12.\n\x0c\x63oncat_param\x18\x07 \x01(\x0b\x32\x18.Holiday_ConcatParameter\x12\x38\n\x11\x63onvolution_param\x18\x08 \x01(\x0b\x32\x1d.Holiday_ConvolutionParameter\x12\x30\n\reltwise_param\x18\t \x01(\x0b\x32\x19.Holiday_EltwiseParameter\x12(\n\texp_param\x18\n \x01(\x0b\x32\x15.Holiday_ExpParameter\x12;\n\x13inner_product_param\x18\x0b \x01(\x0b\x32\x1e.Holiday_InnerProductParameter\x12(\n\tlrn_param\x18\x0c \x01(\x0b\x32\x15.Holiday_LRNParameter\x12>\n\x11memory_data_param\x18\r \x01(\x0b\x32#.Holiday_MemoryDataParameterProcess\x12\x30\n\rpooling_param\x18\x0e \x01(\x0b\x32\x19.Holiday_PoolingParameter\x12,\n\x0bpower_param\x18\x0f \x01(\x0b\x32\x17.Holiday_PowerParameter\x12*\n\nrelu_param\x18\x10 \x01(\x0b\x32\x16.Holiday_ReLUParameter\x12\x30\n\rsoftmax_param\x18\x11 \x01(\x0b\x32\x19.Holiday_SoftmaxParameter\x12,\n\x0bslice_param\x18\x12 \x01(\x0b\x32\x17.Holiday_SliceParameter\x12\x39\n\x0ftransform_param\x18\x13 \x01(\x0b\x32 .Holiday_TransformationParameter\x12<\n\x13\x62\x61tchNormlise_param\x18\x14 \x01(\x0b\x32\x1f.Holiday_BatchNormliseParameter\x12,\n\x0bscale_param\x18\x15 \x01(\x0b\x32\x17.Holiday_ScaleParameter\x12,\n\x0bprelu_param\x18\x16 \x01(\x0b\x32\x17.Holiday_PreluParameter\x12.\n\x0e\x63rop_parameter\x18\x17 \x01(\x0b\x32\x16.Holiday_CropParameter')
)
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
_HOLIDAY_ELTWISEPARAMETER_ELTWISEOP = _descriptor.EnumDescriptor(
name='EltwiseOp',
full_name='Holiday_EltwiseParameter.EltwiseOp',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='PROD', index=0, number=0,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SUM', index=1, number=1,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='MAX', index=2, number=2,
options=None,
type=None),
],
containing_type=None,
options=None,
serialized_start=1066,
serialized_end=1105,
)
_sym_db.RegisterEnumDescriptor(_HOLIDAY_ELTWISEPARAMETER_ELTWISEOP)
_HOLIDAY_LRNPARAMETER_NORMREGION = _descriptor.EnumDescriptor(
name='NormRegion',
full_name='Holiday_LRNParameter.NormRegion',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='ACROSS_CHANNELS', index=0, number=0,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='WITHIN_CHANNEL', index=1, number=1,
options=None,
type=None),
],
containing_type=None,
options=None,
serialized_start=2063,
serialized_end=2116,
)
_sym_db.RegisterEnumDescriptor(_HOLIDAY_LRNPARAMETER_NORMREGION)
_HOLIDAY_POOLINGPARAMETER_POOLMETHOD = _descriptor.EnumDescriptor(
name='PoolMethod',
full_name='Holiday_PoolingParameter.PoolMethod',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='MAX', index=0, number=0,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='AVE', index=1, number=1,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='STOCHASTIC', index=2, number=2,
options=None,
type=None),
],
containing_type=None,
options=None,
serialized_start=2392,
serialized_end=2438,
)
_sym_db.RegisterEnumDescriptor(_HOLIDAY_POOLINGPARAMETER_POOLMETHOD)
_HOLIDAY_BLOBSHAPE = _descriptor.Descriptor(
name='Holiday_BlobShape',
full_name='Holiday_BlobShape',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='dim', full_name='Holiday_BlobShape.dim', index=0,
number=1, type=3, cpp_type=2, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=26,
serialized_end=58,
)
_HOLIDAY_BLOBPROTO = _descriptor.Descriptor(
name='Holiday_BlobProto',
full_name='Holiday_BlobProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='shape', full_name='Holiday_BlobProto.shape', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='data', full_name='Holiday_BlobProto.data', index=1,
number=2, type=2, cpp_type=6, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=60,
serialized_end=128,
)
_HOLIDAY_PRELUPARAMETER = _descriptor.Descriptor(
name='Holiday_PreluParameter',
full_name='Holiday_PreluParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='param', full_name='Holiday_PreluParameter.param', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=130,
serialized_end=189,
)
_HOLIDAY_CROPPARAMETER = _descriptor.Descriptor(
name='Holiday_CropParameter',
full_name='Holiday_CropParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='axis', full_name='Holiday_CropParameter.axis', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='offset', full_name='Holiday_CropParameter.offset', index=1,
number=2, type=13, cpp_type=3, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=191,
serialized_end=247,
)
_HOLIDAY_CONVOLUTIONPARAMETER = _descriptor.Descriptor(
name='Holiday_ConvolutionParameter',
full_name='Holiday_ConvolutionParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='bias_param', full_name='Holiday_ConvolutionParameter.bias_param', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='kernel_param', full_name='Holiday_ConvolutionParameter.kernel_param', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='dilation_height', full_name='Holiday_ConvolutionParameter.dilation_height', index=2,
number=3, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='dilation_width', full_name='Holiday_ConvolutionParameter.dilation_width', index=3,
number=4, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='num_output', full_name='Holiday_ConvolutionParameter.num_output', index=4,
number=5, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='pad_height', full_name='Holiday_ConvolutionParameter.pad_height', index=5,
number=6, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='pad_width', full_name='Holiday_ConvolutionParameter.pad_width', index=6,
number=7, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='kernel_height', full_name='Holiday_ConvolutionParameter.kernel_height', index=7,
number=8, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='kernel_width', full_name='Holiday_ConvolutionParameter.kernel_width', index=8,
number=9, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='stride_height', full_name='Holiday_ConvolutionParameter.stride_height', index=9,
number=10, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='stride_width', full_name='Holiday_ConvolutionParameter.stride_width', index=10,
number=11, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='group', full_name='Holiday_ConvolutionParameter.group', index=11,
number=12, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='axis', full_name='Holiday_ConvolutionParameter.axis', index=12,
number=13, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='force_nd_im2col', full_name='Holiday_ConvolutionParameter.force_nd_im2col', index=13,
number=14, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=250,
serialized_end=633,
)
_HOLIDAY_BATCHNORMLISEPARAMETER = _descriptor.Descriptor(
name='Holiday_BatchNormliseParameter',
full_name='Holiday_BatchNormliseParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='mean_param', full_name='Holiday_BatchNormliseParameter.mean_param', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='covariance_param', full_name='Holiday_BatchNormliseParameter.covariance_param', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=635,
serialized_end=753,
)
_HOLIDAY_SCALEPARAMETER = _descriptor.Descriptor(
name='Holiday_ScaleParameter',
full_name='Holiday_ScaleParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='scale_param', full_name='Holiday_ScaleParameter.scale_param', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='bias_param', full_name='Holiday_ScaleParameter.bias_param', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=755,
serialized_end=860,
)
_HOLIDAY_CONCATPARAMETER = _descriptor.Descriptor(
name='Holiday_ConcatParameter',
full_name='Holiday_ConcatParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='concat_dim', full_name='Holiday_ConcatParameter.concat_dim', index=0,
number=1, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='axis', full_name='Holiday_ConcatParameter.axis', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=862,
serialized_end=927,
)
_HOLIDAY_ELTWISEPARAMETER = _descriptor.Descriptor(
name='Holiday_EltwiseParameter',
full_name='Holiday_EltwiseParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='operation', full_name='Holiday_EltwiseParameter.operation', index=0,
number=1, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='coeff', full_name='Holiday_EltwiseParameter.coeff', index=1,
number=2, type=2, cpp_type=6, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='stable_prod_grad', full_name='Holiday_EltwiseParameter.stable_prod_grad', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
_HOLIDAY_ELTWISEPARAMETER_ELTWISEOP,
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=930,
serialized_end=1105,
)
_HOLIDAY_EXPPARAMETER = _descriptor.Descriptor(
name='Holiday_ExpParameter',
full_name='Holiday_ExpParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='base', full_name='Holiday_ExpParameter.base', index=0,
number=1, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=-1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='scale', full_name='Holiday_ExpParameter.scale', index=1,
number=2, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='shift', full_name='Holiday_ExpParameter.shift', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=1107,
serialized_end=1183,
)
_HOLIDAY_MEMORYDATAPARAMETERPROCESS = _descriptor.Descriptor(
name='Holiday_MemoryDataParameterProcess',
full_name='Holiday_MemoryDataParameterProcess',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='batch_size', full_name='Holiday_MemoryDataParameterProcess.batch_size', index=0,
number=1, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='channels', full_name='Holiday_MemoryDataParameterProcess.channels', index=1,
number=2, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='height', full_name='Holiday_MemoryDataParameterProcess.height', index=2,
number=3, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='width', full_name='Holiday_MemoryDataParameterProcess.width', index=3,
number=4, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='new_height', full_name='Holiday_MemoryDataParameterProcess.new_height', index=4,
number=5, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='new_width', full_name='Holiday_MemoryDataParameterProcess.new_width', index=5,
number=6, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='scale', full_name='Holiday_MemoryDataParameterProcess.scale', index=6,
number=7, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='mean_file', full_name='Holiday_MemoryDataParameterProcess.mean_file', index=7,
number=8, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='mean_value', full_name='Holiday_MemoryDataParameterProcess.mean_value', index=8,
number=9, type=2, cpp_type=6, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='crop_size_height', full_name='Holiday_MemoryDataParameterProcess.crop_size_height', index=9,
number=10, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='crop_size_width', full_name='Holiday_MemoryDataParameterProcess.crop_size_width', index=10,
number=11, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='channel_swaps', full_name='Holiday_MemoryDataParameterProcess.channel_swaps', index=11,
number=12, type=13, cpp_type=3, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=1186,
serialized_end=1493,
)
_HOLIDAY_TRANSFORMATIONPARAMETER = _descriptor.Descriptor(
name='Holiday_TransformationParameter',
full_name='Holiday_TransformationParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='scale', full_name='Holiday_TransformationParameter.scale', index=0,
number=1, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='mirror', full_name='Holiday_TransformationParameter.mirror', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='crop_height', full_name='Holiday_TransformationParameter.crop_height', index=2,
number=3, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='crop_width', full_name='Holiday_TransformationParameter.crop_width', index=3,
number=4, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='mean_file', full_name='Holiday_TransformationParameter.mean_file', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='mean_value', full_name='Holiday_TransformationParameter.mean_value', index=5,
number=6, type=2, cpp_type=6, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='force_color', full_name='Holiday_TransformationParameter.force_color', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='force_gray', full_name='Holiday_TransformationParameter.force_gray', index=7,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=1496,
serialized_end=1711,
)
_HOLIDAY_INNERPRODUCTPARAMETER = _descriptor.Descriptor(
name='Holiday_InnerProductParameter',
full_name='Holiday_InnerProductParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='num_output', full_name='Holiday_InnerProductParameter.num_output', index=0,
number=1, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='axis', full_name='Holiday_InnerProductParameter.axis', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='transpose', full_name='Holiday_InnerProductParameter.transpose', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='bias_param', full_name='Holiday_InnerProductParameter.bias_param', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='Inner_param', full_name='Holiday_InnerProductParameter.Inner_param', index=4,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=1714,
serialized_end=1889,
)
_HOLIDAY_LRNPARAMETER = _descriptor.Descriptor(
name='Holiday_LRNParameter',
full_name='Holiday_LRNParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='local_size', full_name='Holiday_LRNParameter.local_size', index=0,
number=1, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=5,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='alpha', full_name='Holiday_LRNParameter.alpha', index=1,
number=2, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='beta', full_name='Holiday_LRNParameter.beta', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=0.75,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='norm_region', full_name='Holiday_LRNParameter.norm_region', index=3,
number=4, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='k', full_name='Holiday_LRNParameter.k', index=4,
number=5, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
_HOLIDAY_LRNPARAMETER_NORMREGION,
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=1892,
serialized_end=2116,
)
_HOLIDAY_POOLINGPARAMETER = _descriptor.Descriptor(
name='Holiday_PoolingParameter',
full_name='Holiday_PoolingParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='pool', full_name='Holiday_PoolingParameter.pool', index=0,
number=1, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='pad_height', full_name='Holiday_PoolingParameter.pad_height', index=1,
number=2, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='pad_width', full_name='Holiday_PoolingParameter.pad_width', index=2,
number=3, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='kernel_height', full_name='Holiday_PoolingParameter.kernel_height', index=3,
number=4, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='kernel_width', full_name='Holiday_PoolingParameter.kernel_width', index=4,
number=5, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='stride_height', full_name='Holiday_PoolingParameter.stride_height', index=5,
number=6, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='stride_width', full_name='Holiday_PoolingParameter.stride_width', index=6,
number=7, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='global_pooling', full_name='Holiday_PoolingParameter.global_pooling', index=7,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='valid', full_name='Holiday_PoolingParameter.valid', index=8,
number=9, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
_HOLIDAY_POOLINGPARAMETER_POOLMETHOD,
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=2119,
serialized_end=2438,
)
_HOLIDAY_POWERPARAMETER = _descriptor.Descriptor(
name='Holiday_PowerParameter',
full_name='Holiday_PowerParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='power', full_name='Holiday_PowerParameter.power', index=0,
number=1, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='scale', full_name='Holiday_PowerParameter.scale', index=1,
number=2, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='shift', full_name='Holiday_PowerParameter.shift', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=2440,
serialized_end=2518,
)
_HOLIDAY_RELUPARAMETER = _descriptor.Descriptor(
name='Holiday_ReLUParameter',
full_name='Holiday_ReLUParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='negative_slope', full_name='Holiday_ReLUParameter.negative_slope', index=0,
number=1, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=2520,
serialized_end=2570,
)
_HOLIDAY_SOFTMAXPARAMETER = _descriptor.Descriptor(
name='Holiday_SoftmaxParameter',
full_name='Holiday_SoftmaxParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='axis', full_name='Holiday_SoftmaxParameter.axis', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=2572,
serialized_end=2615,
)
_HOLIDAY_SLICEPARAMETER = _descriptor.Descriptor(
name='Holiday_SliceParameter',
full_name='Holiday_SliceParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='axis', full_name='Holiday_SliceParameter.axis', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='slice_point', full_name='Holiday_SliceParameter.slice_point', index=1,
number=2, type=13, cpp_type=3, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='slice_dim', full_name='Holiday_SliceParameter.slice_dim', index=2,
number=3, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=2617,
serialized_end=2701,
)
_HOLIDAY_LAYERPARAMETER = _descriptor.Descriptor(
name='Holiday_LayerParameter',
full_name='Holiday_LayerParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='bottom', full_name='Holiday_LayerParameter.bottom', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='top', full_name='Holiday_LayerParameter.top', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='name', full_name='Holiday_LayerParameter.name', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='type', full_name='Holiday_LayerParameter.type', index=3,
number=4, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='top_index', full_name='Holiday_LayerParameter.top_index', index=4,
number=5, type=13, cpp_type=3, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='bottom_index', full_name='Holiday_LayerParameter.bottom_index', index=5,
number=6, type=13, cpp_type=3, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='concat_param', full_name='Holiday_LayerParameter.concat_param', index=6,
number=7, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='convolution_param', full_name='Holiday_LayerParameter.convolution_param', index=7,
number=8, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='eltwise_param', full_name='Holiday_LayerParameter.eltwise_param', index=8,
number=9, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='exp_param', full_name='Holiday_LayerParameter.exp_param', index=9,
number=10, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='inner_product_param', full_name='Holiday_LayerParameter.inner_product_param', index=10,
number=11, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='lrn_param', full_name='Holiday_LayerParameter.lrn_param', index=11,
number=12, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='memory_data_param', full_name='Holiday_LayerParameter.memory_data_param', index=12,
number=13, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='pooling_param', full_name='Holiday_LayerParameter.pooling_param', index=13,
number=14, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='power_param', full_name='Holiday_LayerParameter.power_param', index=14,
number=15, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='relu_param', full_name='Holiday_LayerParameter.relu_param', index=15,
number=16, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='softmax_param', full_name='Holiday_LayerParameter.softmax_param', index=16,
number=17, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='slice_param', full_name='Holiday_LayerParameter.slice_param', index=17,
number=18, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='transform_param', full_name='Holiday_LayerParameter.transform_param', index=18,
number=19, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='batchNormlise_param', full_name='Holiday_LayerParameter.batchNormlise_param', index=19,
number=20, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='scale_param', full_name='Holiday_LayerParameter.scale_param', index=20,
number=21, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='prelu_param', full_name='Holiday_LayerParameter.prelu_param', index=21,
number=22, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='crop_parameter', full_name='Holiday_LayerParameter.crop_parameter', index=22,
number=23, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=2704,
serialized_end=3688,
)
_HOLIDAY_BLOBPROTO.fields_by_name['shape'].message_type = _HOLIDAY_BLOBSHAPE
_HOLIDAY_PRELUPARAMETER.fields_by_name['param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_CONVOLUTIONPARAMETER.fields_by_name['bias_param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_CONVOLUTIONPARAMETER.fields_by_name['kernel_param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_BATCHNORMLISEPARAMETER.fields_by_name['mean_param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_BATCHNORMLISEPARAMETER.fields_by_name['covariance_param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_SCALEPARAMETER.fields_by_name['scale_param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_SCALEPARAMETER.fields_by_name['bias_param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_ELTWISEPARAMETER.fields_by_name['operation'].enum_type = _HOLIDAY_ELTWISEPARAMETER_ELTWISEOP
_HOLIDAY_ELTWISEPARAMETER_ELTWISEOP.containing_type = _HOLIDAY_ELTWISEPARAMETER
_HOLIDAY_MEMORYDATAPARAMETERPROCESS.fields_by_name['mean_file'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_INNERPRODUCTPARAMETER.fields_by_name['bias_param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_INNERPRODUCTPARAMETER.fields_by_name['Inner_param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_LRNPARAMETER.fields_by_name['norm_region'].enum_type = _HOLIDAY_LRNPARAMETER_NORMREGION
_HOLIDAY_LRNPARAMETER_NORMREGION.containing_type = _HOLIDAY_LRNPARAMETER
_HOLIDAY_POOLINGPARAMETER.fields_by_name['pool'].enum_type = _HOLIDAY_POOLINGPARAMETER_POOLMETHOD
_HOLIDAY_POOLINGPARAMETER_POOLMETHOD.containing_type = _HOLIDAY_POOLINGPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['concat_param'].message_type = _HOLIDAY_CONCATPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['convolution_param'].message_type = _HOLIDAY_CONVOLUTIONPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['eltwise_param'].message_type = _HOLIDAY_ELTWISEPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['exp_param'].message_type = _HOLIDAY_EXPPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['inner_product_param'].message_type = _HOLIDAY_INNERPRODUCTPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['lrn_param'].message_type = _HOLIDAY_LRNPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['memory_data_param'].message_type = _HOLIDAY_MEMORYDATAPARAMETERPROCESS
_HOLIDAY_LAYERPARAMETER.fields_by_name['pooling_param'].message_type = _HOLIDAY_POOLINGPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['power_param'].message_type = _HOLIDAY_POWERPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['relu_param'].message_type = _HOLIDAY_RELUPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['softmax_param'].message_type = _HOLIDAY_SOFTMAXPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['slice_param'].message_type = _HOLIDAY_SLICEPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['transform_param'].message_type = _HOLIDAY_TRANSFORMATIONPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['batchNormlise_param'].message_type = _HOLIDAY_BATCHNORMLISEPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['scale_param'].message_type = _HOLIDAY_SCALEPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['prelu_param'].message_type = _HOLIDAY_PRELUPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['crop_parameter'].message_type = _HOLIDAY_CROPPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_BlobShape'] = _HOLIDAY_BLOBSHAPE
DESCRIPTOR.message_types_by_name['Holiday_BlobProto'] = _HOLIDAY_BLOBPROTO
DESCRIPTOR.message_types_by_name['Holiday_PreluParameter'] = _HOLIDAY_PRELUPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_CropParameter'] = _HOLIDAY_CROPPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_ConvolutionParameter'] = _HOLIDAY_CONVOLUTIONPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_BatchNormliseParameter'] = _HOLIDAY_BATCHNORMLISEPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_ScaleParameter'] = _HOLIDAY_SCALEPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_ConcatParameter'] = _HOLIDAY_CONCATPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_EltwiseParameter'] = _HOLIDAY_ELTWISEPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_ExpParameter'] = _HOLIDAY_EXPPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_MemoryDataParameterProcess'] = _HOLIDAY_MEMORYDATAPARAMETERPROCESS
DESCRIPTOR.message_types_by_name['Holiday_TransformationParameter'] = _HOLIDAY_TRANSFORMATIONPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_InnerProductParameter'] = _HOLIDAY_INNERPRODUCTPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_LRNParameter'] = _HOLIDAY_LRNPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_PoolingParameter'] = _HOLIDAY_POOLINGPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_PowerParameter'] = _HOLIDAY_POWERPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_ReLUParameter'] = _HOLIDAY_RELUPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_SoftmaxParameter'] = _HOLIDAY_SOFTMAXPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_SliceParameter'] = _HOLIDAY_SLICEPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_LayerParameter'] = _HOLIDAY_LAYERPARAMETER
Holiday_BlobShape = _reflection.GeneratedProtocolMessageType('Holiday_BlobShape', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_BLOBSHAPE,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_BlobShape)
))
_sym_db.RegisterMessage(Holiday_BlobShape)
Holiday_BlobProto = _reflection.GeneratedProtocolMessageType('Holiday_BlobProto', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_BLOBPROTO,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_BlobProto)
))
_sym_db.RegisterMessage(Holiday_BlobProto)
Holiday_PreluParameter = _reflection.GeneratedProtocolMessageType('Holiday_PreluParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_PRELUPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_PreluParameter)
))
_sym_db.RegisterMessage(Holiday_PreluParameter)
Holiday_CropParameter = _reflection.GeneratedProtocolMessageType('Holiday_CropParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_CROPPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_CropParameter)
))
_sym_db.RegisterMessage(Holiday_CropParameter)
Holiday_ConvolutionParameter = _reflection.GeneratedProtocolMessageType('Holiday_ConvolutionParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_CONVOLUTIONPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_ConvolutionParameter)
))
_sym_db.RegisterMessage(Holiday_ConvolutionParameter)
Holiday_BatchNormliseParameter = _reflection.GeneratedProtocolMessageType('Holiday_BatchNormliseParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_BATCHNORMLISEPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_BatchNormliseParameter)
))
_sym_db.RegisterMessage(Holiday_BatchNormliseParameter)
Holiday_ScaleParameter = _reflection.GeneratedProtocolMessageType('Holiday_ScaleParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_SCALEPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_ScaleParameter)
))
_sym_db.RegisterMessage(Holiday_ScaleParameter)
Holiday_ConcatParameter = _reflection.GeneratedProtocolMessageType('Holiday_ConcatParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_CONCATPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_ConcatParameter)
))
_sym_db.RegisterMessage(Holiday_ConcatParameter)
Holiday_EltwiseParameter = _reflection.GeneratedProtocolMessageType('Holiday_EltwiseParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_ELTWISEPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_EltwiseParameter)
))
_sym_db.RegisterMessage(Holiday_EltwiseParameter)
Holiday_ExpParameter = _reflection.GeneratedProtocolMessageType('Holiday_ExpParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_EXPPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_ExpParameter)
))
_sym_db.RegisterMessage(Holiday_ExpParameter)
Holiday_MemoryDataParameterProcess = _reflection.GeneratedProtocolMessageType('Holiday_MemoryDataParameterProcess', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_MEMORYDATAPARAMETERPROCESS,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_MemoryDataParameterProcess)
))
_sym_db.RegisterMessage(Holiday_MemoryDataParameterProcess)
Holiday_TransformationParameter = _reflection.GeneratedProtocolMessageType('Holiday_TransformationParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_TRANSFORMATIONPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_TransformationParameter)
))
_sym_db.RegisterMessage(Holiday_TransformationParameter)
Holiday_InnerProductParameter = _reflection.GeneratedProtocolMessageType('Holiday_InnerProductParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_INNERPRODUCTPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_InnerProductParameter)
))
_sym_db.RegisterMessage(Holiday_InnerProductParameter)
Holiday_LRNParameter = _reflection.GeneratedProtocolMessageType('Holiday_LRNParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_LRNPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_LRNParameter)
))
_sym_db.RegisterMessage(Holiday_LRNParameter)
Holiday_PoolingParameter = _reflection.GeneratedProtocolMessageType('Holiday_PoolingParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_POOLINGPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_PoolingParameter)
))
_sym_db.RegisterMessage(Holiday_PoolingParameter)
Holiday_PowerParameter = _reflection.GeneratedProtocolMessageType('Holiday_PowerParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_POWERPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_PowerParameter)
))
_sym_db.RegisterMessage(Holiday_PowerParameter)
Holiday_ReLUParameter = _reflection.GeneratedProtocolMessageType('Holiday_ReLUParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_RELUPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_ReLUParameter)
))
_sym_db.RegisterMessage(Holiday_ReLUParameter)
Holiday_SoftmaxParameter = _reflection.GeneratedProtocolMessageType('Holiday_SoftmaxParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_SOFTMAXPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_SoftmaxParameter)
))
_sym_db.RegisterMessage(Holiday_SoftmaxParameter)
Holiday_SliceParameter = _reflection.GeneratedProtocolMessageType('Holiday_SliceParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_SLICEPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_SliceParameter)
))
_sym_db.RegisterMessage(Holiday_SliceParameter)
Holiday_LayerParameter = _reflection.GeneratedProtocolMessageType('Holiday_LayerParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_LAYERPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_LayerParameter)
))
_sym_db.RegisterMessage(Holiday_LayerParameter)
# @@protoc_insertion_point(module_scope)
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: HolidayCNN_proto.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='HolidayCNN_proto.proto',
package='',
serialized_pb=_b('\n\x16HolidayCNN_proto.proto\" \n\x11Holiday_BlobShape\x12\x0b\n\x03\x64im\x18\x01 \x03(\x03\"D\n\x11Holiday_BlobProto\x12!\n\x05shape\x18\x01 \x01(\x0b\x32\x12.Holiday_BlobShape\x12\x0c\n\x04\x64\x61ta\x18\x02 \x03(\x02\";\n\x16Holiday_PreluParameter\x12!\n\x05param\x18\x01 \x01(\x0b\x32\x12.Holiday_BlobProto\"8\n\x15Holiday_CropParameter\x12\x0f\n\x04\x61xis\x18\x01 \x01(\x05:\x01\x32\x12\x0e\n\x06offset\x18\x02 \x03(\r\"\xff\x02\n\x1cHoliday_ConvolutionParameter\x12&\n\nbias_param\x18\x01 \x01(\x0b\x32\x12.Holiday_BlobProto\x12(\n\x0ckernel_param\x18\x02 \x01(\x0b\x32\x12.Holiday_BlobProto\x12\x17\n\x0f\x64ilation_height\x18\x03 \x01(\r\x12\x16\n\x0e\x64ilation_width\x18\x04 \x01(\r\x12\x12\n\nnum_output\x18\x05 \x01(\r\x12\x15\n\npad_height\x18\x06 \x01(\r:\x01\x30\x12\x14\n\tpad_width\x18\x07 \x01(\r:\x01\x30\x12\x15\n\rkernel_height\x18\x08 \x01(\r\x12\x14\n\x0ckernel_width\x18\t \x01(\r\x12\x15\n\rstride_height\x18\n \x01(\r\x12\x14\n\x0cstride_width\x18\x0b \x01(\r\x12\x10\n\x05group\x18\x0c \x01(\r:\x01\x31\x12\x0f\n\x04\x61xis\x18\r \x01(\x05:\x01\x31\x12\x1e\n\x0f\x66orce_nd_im2col\x18\x0e \x01(\x08:\x05\x66\x61lse\"v\n\x1eHoliday_BatchNormliseParameter\x12&\n\nmean_param\x18\x01 \x01(\x0b\x32\x12.Holiday_BlobProto\x12,\n\x10\x63ovariance_param\x18\x02 \x01(\x0b\x32\x12.Holiday_BlobProto\"i\n\x16Holiday_ScaleParameter\x12\'\n\x0bscale_param\x18\x01 \x01(\x0b\x32\x12.Holiday_BlobProto\x12&\n\nbias_param\x18\x02 \x01(\x0b\x32\x12.Holiday_BlobProto\"A\n\x17Holiday_ConcatParameter\x12\x15\n\nconcat_dim\x18\x01 \x01(\r:\x01\x31\x12\x0f\n\x04\x61xis\x18\x02 \x01(\x05:\x01\x31\"\xaf\x01\n\x18Holiday_EltwiseParameter\x12;\n\toperation\x18\x01 \x01(\x0e\x32#.Holiday_EltwiseParameter.EltwiseOp:\x03SUM\x12\r\n\x05\x63oeff\x18\x02 \x03(\x02\x12\x1e\n\x10stable_prod_grad\x18\x03 \x01(\x08:\x04true\"\'\n\tEltwiseOp\x12\x08\n\x04PROD\x10\x00\x12\x07\n\x03SUM\x10\x01\x12\x07\n\x03MAX\x10\x02\"L\n\x14Holiday_ExpParameter\x12\x10\n\x04\x62\x61se\x18\x01 \x01(\x02:\x02-1\x12\x10\n\x05scale\x18\x02 \x01(\x02:\x01\x31\x12\x10\n\x05shift\x18\x03 \x01(\x02:\x01\x30\"\xb3\x02\n\"Holiday_MemoryDataParameterProcess\x12\x12\n\nbatch_size\x18\x01 \x01(\r\x12\x10\n\x08\x63hannels\x18\x02 \x01(\r\x12\x0e\n\x06height\x18\x03 \x01(\r\x12\r\n\x05width\x18\x04 \x01(\r\x12\x15\n\nnew_height\x18\x05 \x01(\r:\x01\x30\x12\x14\n\tnew_width\x18\x06 \x01(\r:\x01\x30\x12\x10\n\x05scale\x18\x07 \x01(\x02:\x01\x31\x12%\n\tmean_file\x18\x08 \x01(\x0b\x32\x12.Holiday_BlobProto\x12\x12\n\nmean_value\x18\t \x03(\x02\x12\x1b\n\x10\x63rop_size_height\x18\n \x01(\r:\x01\x30\x12\x1a\n\x0f\x63rop_size_width\x18\x0b \x01(\r:\x01\x30\x12\x15\n\rchannel_swaps\x18\x0c \x03(\r\"\xd7\x01\n\x1fHoliday_TransformationParameter\x12\x10\n\x05scale\x18\x01 \x01(\x02:\x01\x31\x12\x15\n\x06mirror\x18\x02 \x01(\x08:\x05\x66\x61lse\x12\x16\n\x0b\x63rop_height\x18\x03 \x01(\r:\x01\x30\x12\x15\n\ncrop_width\x18\x04 \x01(\r:\x01\x30\x12\x11\n\tmean_file\x18\x05 \x01(\t\x12\x12\n\nmean_value\x18\x06 \x03(\x02\x12\x1a\n\x0b\x66orce_color\x18\x07 \x01(\x08:\x05\x66\x61lse\x12\x19\n\nforce_gray\x18\x08 \x01(\x08:\x05\x66\x61lse\"\xaf\x01\n\x1dHoliday_InnerProductParameter\x12\x12\n\nnum_output\x18\x01 \x01(\r\x12\x0f\n\x04\x61xis\x18\x02 \x01(\x05:\x01\x31\x12\x18\n\ttranspose\x18\x03 \x01(\x08:\x05\x66\x61lse\x12&\n\nbias_param\x18\x04 \x01(\x0b\x32\x12.Holiday_BlobProto\x12\'\n\x0bInner_param\x18\x05 \x01(\x0b\x32\x12.Holiday_BlobProto\"\xe0\x01\n\x14Holiday_LRNParameter\x12\x15\n\nlocal_size\x18\x01 \x01(\r:\x01\x35\x12\x10\n\x05\x61lpha\x18\x02 \x01(\x02:\x01\x31\x12\x12\n\x04\x62\x65ta\x18\x03 \x01(\x02:\x04\x30.75\x12\x46\n\x0bnorm_region\x18\x04 \x01(\x0e\x32 .Holiday_LRNParameter.NormRegion:\x0f\x41\x43ROSS_CHANNELS\x12\x0c\n\x01k\x18\x05 \x01(\x02:\x01\x31\"5\n\nNormRegion\x12\x13\n\x0f\x41\x43ROSS_CHANNELS\x10\x00\x12\x12\n\x0eWITHIN_CHANNEL\x10\x01\"\xbf\x02\n\x18Holiday_PoolingParameter\x12\x37\n\x04pool\x18\x01 \x01(\x0e\x32$.Holiday_PoolingParameter.PoolMethod:\x03MAX\x12\x15\n\npad_height\x18\x02 \x01(\r:\x01\x30\x12\x14\n\tpad_width\x18\x03 \x01(\r:\x01\x30\x12\x15\n\rkernel_height\x18\x04 \x01(\r\x12\x14\n\x0ckernel_width\x18\x05 \x01(\r\x12\x15\n\rstride_height\x18\x06 \x01(\r\x12\x14\n\x0cstride_width\x18\x07 \x01(\r\x12\x1d\n\x0eglobal_pooling\x18\x08 \x01(\x08:\x05\x66\x61lse\x12\x14\n\x05valid\x18\t \x01(\x08:\x05\x66\x61lse\".\n\nPoolMethod\x12\x07\n\x03MAX\x10\x00\x12\x07\n\x03\x41VE\x10\x01\x12\x0e\n\nSTOCHASTIC\x10\x02\"N\n\x16Holiday_PowerParameter\x12\x10\n\x05power\x18\x01 \x01(\x02:\x01\x31\x12\x10\n\x05scale\x18\x02 \x01(\x02:\x01\x31\x12\x10\n\x05shift\x18\x03 \x01(\x02:\x01\x30\"2\n\x15Holiday_ReLUParameter\x12\x19\n\x0enegative_slope\x18\x01 \x01(\x02:\x01\x30\"+\n\x18Holiday_SoftmaxParameter\x12\x0f\n\x04\x61xis\x18\x01 \x01(\x05:\x01\x31\"T\n\x16Holiday_SliceParameter\x12\x0f\n\x04\x61xis\x18\x01 \x01(\x05:\x01\x31\x12\x13\n\x0bslice_point\x18\x02 \x03(\r\x12\x14\n\tslice_dim\x18\x03 \x01(\r:\x01\x31\"\xd8\x07\n\x16Holiday_LayerParameter\x12\x0e\n\x06\x62ottom\x18\x01 \x03(\t\x12\x0b\n\x03top\x18\x02 \x03(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x0c\n\x04type\x18\x04 \x01(\r\x12\x11\n\ttop_index\x18\x05 \x03(\r\x12\x14\n\x0c\x62ottom_index\x18\x06 \x03(\r\x12.\n\x0c\x63oncat_param\x18\x07 \x01(\x0b\x32\x18.Holiday_ConcatParameter\x12\x38\n\x11\x63onvolution_param\x18\x08 \x01(\x0b\x32\x1d.Holiday_ConvolutionParameter\x12\x30\n\reltwise_param\x18\t \x01(\x0b\x32\x19.Holiday_EltwiseParameter\x12(\n\texp_param\x18\n \x01(\x0b\x32\x15.Holiday_ExpParameter\x12;\n\x13inner_product_param\x18\x0b \x01(\x0b\x32\x1e.Holiday_InnerProductParameter\x12(\n\tlrn_param\x18\x0c \x01(\x0b\x32\x15.Holiday_LRNParameter\x12>\n\x11memory_data_param\x18\r \x01(\x0b\x32#.Holiday_MemoryDataParameterProcess\x12\x30\n\rpooling_param\x18\x0e \x01(\x0b\x32\x19.Holiday_PoolingParameter\x12,\n\x0bpower_param\x18\x0f \x01(\x0b\x32\x17.Holiday_PowerParameter\x12*\n\nrelu_param\x18\x10 \x01(\x0b\x32\x16.Holiday_ReLUParameter\x12\x30\n\rsoftmax_param\x18\x11 \x01(\x0b\x32\x19.Holiday_SoftmaxParameter\x12,\n\x0bslice_param\x18\x12 \x01(\x0b\x32\x17.Holiday_SliceParameter\x12\x39\n\x0ftransform_param\x18\x13 \x01(\x0b\x32 .Holiday_TransformationParameter\x12<\n\x13\x62\x61tchNormlise_param\x18\x14 \x01(\x0b\x32\x1f.Holiday_BatchNormliseParameter\x12,\n\x0bscale_param\x18\x15 \x01(\x0b\x32\x17.Holiday_ScaleParameter\x12,\n\x0bprelu_param\x18\x16 \x01(\x0b\x32\x17.Holiday_PreluParameter\x12.\n\x0e\x63rop_parameter\x18\x17 \x01(\x0b\x32\x16.Holiday_CropParameter')
)
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
_HOLIDAY_ELTWISEPARAMETER_ELTWISEOP = _descriptor.EnumDescriptor(
name='EltwiseOp',
full_name='Holiday_EltwiseParameter.EltwiseOp',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='PROD', index=0, number=0,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SUM', index=1, number=1,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='MAX', index=2, number=2,
options=None,
type=None),
],
containing_type=None,
options=None,
serialized_start=1066,
serialized_end=1105,
)
_sym_db.RegisterEnumDescriptor(_HOLIDAY_ELTWISEPARAMETER_ELTWISEOP)
_HOLIDAY_LRNPARAMETER_NORMREGION = _descriptor.EnumDescriptor(
name='NormRegion',
full_name='Holiday_LRNParameter.NormRegion',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='ACROSS_CHANNELS', index=0, number=0,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='WITHIN_CHANNEL', index=1, number=1,
options=None,
type=None),
],
containing_type=None,
options=None,
serialized_start=2063,
serialized_end=2116,
)
_sym_db.RegisterEnumDescriptor(_HOLIDAY_LRNPARAMETER_NORMREGION)
_HOLIDAY_POOLINGPARAMETER_POOLMETHOD = _descriptor.EnumDescriptor(
name='PoolMethod',
full_name='Holiday_PoolingParameter.PoolMethod',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='MAX', index=0, number=0,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='AVE', index=1, number=1,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='STOCHASTIC', index=2, number=2,
options=None,
type=None),
],
containing_type=None,
options=None,
serialized_start=2392,
serialized_end=2438,
)
_sym_db.RegisterEnumDescriptor(_HOLIDAY_POOLINGPARAMETER_POOLMETHOD)
_HOLIDAY_BLOBSHAPE = _descriptor.Descriptor(
name='Holiday_BlobShape',
full_name='Holiday_BlobShape',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='dim', full_name='Holiday_BlobShape.dim', index=0,
number=1, type=3, cpp_type=2, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=26,
serialized_end=58,
)
_HOLIDAY_BLOBPROTO = _descriptor.Descriptor(
name='Holiday_BlobProto',
full_name='Holiday_BlobProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='shape', full_name='Holiday_BlobProto.shape', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='data', full_name='Holiday_BlobProto.data', index=1,
number=2, type=2, cpp_type=6, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=60,
serialized_end=128,
)
_HOLIDAY_PRELUPARAMETER = _descriptor.Descriptor(
name='Holiday_PreluParameter',
full_name='Holiday_PreluParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='param', full_name='Holiday_PreluParameter.param', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=130,
serialized_end=189,
)
_HOLIDAY_CROPPARAMETER = _descriptor.Descriptor(
name='Holiday_CropParameter',
full_name='Holiday_CropParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='axis', full_name='Holiday_CropParameter.axis', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='offset', full_name='Holiday_CropParameter.offset', index=1,
number=2, type=13, cpp_type=3, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=191,
serialized_end=247,
)
_HOLIDAY_CONVOLUTIONPARAMETER = _descriptor.Descriptor(
name='Holiday_ConvolutionParameter',
full_name='Holiday_ConvolutionParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='bias_param', full_name='Holiday_ConvolutionParameter.bias_param', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='kernel_param', full_name='Holiday_ConvolutionParameter.kernel_param', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='dilation_height', full_name='Holiday_ConvolutionParameter.dilation_height', index=2,
number=3, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='dilation_width', full_name='Holiday_ConvolutionParameter.dilation_width', index=3,
number=4, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='num_output', full_name='Holiday_ConvolutionParameter.num_output', index=4,
number=5, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='pad_height', full_name='Holiday_ConvolutionParameter.pad_height', index=5,
number=6, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='pad_width', full_name='Holiday_ConvolutionParameter.pad_width', index=6,
number=7, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='kernel_height', full_name='Holiday_ConvolutionParameter.kernel_height', index=7,
number=8, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='kernel_width', full_name='Holiday_ConvolutionParameter.kernel_width', index=8,
number=9, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='stride_height', full_name='Holiday_ConvolutionParameter.stride_height', index=9,
number=10, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='stride_width', full_name='Holiday_ConvolutionParameter.stride_width', index=10,
number=11, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='group', full_name='Holiday_ConvolutionParameter.group', index=11,
number=12, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='axis', full_name='Holiday_ConvolutionParameter.axis', index=12,
number=13, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='force_nd_im2col', full_name='Holiday_ConvolutionParameter.force_nd_im2col', index=13,
number=14, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=250,
serialized_end=633,
)
_HOLIDAY_BATCHNORMLISEPARAMETER = _descriptor.Descriptor(
name='Holiday_BatchNormliseParameter',
full_name='Holiday_BatchNormliseParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='mean_param', full_name='Holiday_BatchNormliseParameter.mean_param', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='covariance_param', full_name='Holiday_BatchNormliseParameter.covariance_param', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=635,
serialized_end=753,
)
_HOLIDAY_SCALEPARAMETER = _descriptor.Descriptor(
name='Holiday_ScaleParameter',
full_name='Holiday_ScaleParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='scale_param', full_name='Holiday_ScaleParameter.scale_param', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='bias_param', full_name='Holiday_ScaleParameter.bias_param', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=755,
serialized_end=860,
)
_HOLIDAY_CONCATPARAMETER = _descriptor.Descriptor(
name='Holiday_ConcatParameter',
full_name='Holiday_ConcatParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='concat_dim', full_name='Holiday_ConcatParameter.concat_dim', index=0,
number=1, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='axis', full_name='Holiday_ConcatParameter.axis', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=862,
serialized_end=927,
)
_HOLIDAY_ELTWISEPARAMETER = _descriptor.Descriptor(
name='Holiday_EltwiseParameter',
full_name='Holiday_EltwiseParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='operation', full_name='Holiday_EltwiseParameter.operation', index=0,
number=1, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='coeff', full_name='Holiday_EltwiseParameter.coeff', index=1,
number=2, type=2, cpp_type=6, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='stable_prod_grad', full_name='Holiday_EltwiseParameter.stable_prod_grad', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
_HOLIDAY_ELTWISEPARAMETER_ELTWISEOP,
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=930,
serialized_end=1105,
)
_HOLIDAY_EXPPARAMETER = _descriptor.Descriptor(
name='Holiday_ExpParameter',
full_name='Holiday_ExpParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='base', full_name='Holiday_ExpParameter.base', index=0,
number=1, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=-1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='scale', full_name='Holiday_ExpParameter.scale', index=1,
number=2, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='shift', full_name='Holiday_ExpParameter.shift', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=1107,
serialized_end=1183,
)
_HOLIDAY_MEMORYDATAPARAMETERPROCESS = _descriptor.Descriptor(
name='Holiday_MemoryDataParameterProcess',
full_name='Holiday_MemoryDataParameterProcess',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='batch_size', full_name='Holiday_MemoryDataParameterProcess.batch_size', index=0,
number=1, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='channels', full_name='Holiday_MemoryDataParameterProcess.channels', index=1,
number=2, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='height', full_name='Holiday_MemoryDataParameterProcess.height', index=2,
number=3, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='width', full_name='Holiday_MemoryDataParameterProcess.width', index=3,
number=4, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='new_height', full_name='Holiday_MemoryDataParameterProcess.new_height', index=4,
number=5, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='new_width', full_name='Holiday_MemoryDataParameterProcess.new_width', index=5,
number=6, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='scale', full_name='Holiday_MemoryDataParameterProcess.scale', index=6,
number=7, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='mean_file', full_name='Holiday_MemoryDataParameterProcess.mean_file', index=7,
number=8, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='mean_value', full_name='Holiday_MemoryDataParameterProcess.mean_value', index=8,
number=9, type=2, cpp_type=6, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='crop_size_height', full_name='Holiday_MemoryDataParameterProcess.crop_size_height', index=9,
number=10, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='crop_size_width', full_name='Holiday_MemoryDataParameterProcess.crop_size_width', index=10,
number=11, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='channel_swaps', full_name='Holiday_MemoryDataParameterProcess.channel_swaps', index=11,
number=12, type=13, cpp_type=3, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=1186,
serialized_end=1493,
)
_HOLIDAY_TRANSFORMATIONPARAMETER = _descriptor.Descriptor(
name='Holiday_TransformationParameter',
full_name='Holiday_TransformationParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='scale', full_name='Holiday_TransformationParameter.scale', index=0,
number=1, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='mirror', full_name='Holiday_TransformationParameter.mirror', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='crop_height', full_name='Holiday_TransformationParameter.crop_height', index=2,
number=3, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='crop_width', full_name='Holiday_TransformationParameter.crop_width', index=3,
number=4, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='mean_file', full_name='Holiday_TransformationParameter.mean_file', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='mean_value', full_name='Holiday_TransformationParameter.mean_value', index=5,
number=6, type=2, cpp_type=6, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='force_color', full_name='Holiday_TransformationParameter.force_color', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='force_gray', full_name='Holiday_TransformationParameter.force_gray', index=7,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=1496,
serialized_end=1711,
)
_HOLIDAY_INNERPRODUCTPARAMETER = _descriptor.Descriptor(
name='Holiday_InnerProductParameter',
full_name='Holiday_InnerProductParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='num_output', full_name='Holiday_InnerProductParameter.num_output', index=0,
number=1, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='axis', full_name='Holiday_InnerProductParameter.axis', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='transpose', full_name='Holiday_InnerProductParameter.transpose', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='bias_param', full_name='Holiday_InnerProductParameter.bias_param', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='Inner_param', full_name='Holiday_InnerProductParameter.Inner_param', index=4,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=1714,
serialized_end=1889,
)
_HOLIDAY_LRNPARAMETER = _descriptor.Descriptor(
name='Holiday_LRNParameter',
full_name='Holiday_LRNParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='local_size', full_name='Holiday_LRNParameter.local_size', index=0,
number=1, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=5,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='alpha', full_name='Holiday_LRNParameter.alpha', index=1,
number=2, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='beta', full_name='Holiday_LRNParameter.beta', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=0.75,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='norm_region', full_name='Holiday_LRNParameter.norm_region', index=3,
number=4, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='k', full_name='Holiday_LRNParameter.k', index=4,
number=5, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
_HOLIDAY_LRNPARAMETER_NORMREGION,
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=1892,
serialized_end=2116,
)
_HOLIDAY_POOLINGPARAMETER = _descriptor.Descriptor(
name='Holiday_PoolingParameter',
full_name='Holiday_PoolingParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='pool', full_name='Holiday_PoolingParameter.pool', index=0,
number=1, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='pad_height', full_name='Holiday_PoolingParameter.pad_height', index=1,
number=2, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='pad_width', full_name='Holiday_PoolingParameter.pad_width', index=2,
number=3, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='kernel_height', full_name='Holiday_PoolingParameter.kernel_height', index=3,
number=4, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='kernel_width', full_name='Holiday_PoolingParameter.kernel_width', index=4,
number=5, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='stride_height', full_name='Holiday_PoolingParameter.stride_height', index=5,
number=6, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='stride_width', full_name='Holiday_PoolingParameter.stride_width', index=6,
number=7, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='global_pooling', full_name='Holiday_PoolingParameter.global_pooling', index=7,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='valid', full_name='Holiday_PoolingParameter.valid', index=8,
number=9, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
_HOLIDAY_POOLINGPARAMETER_POOLMETHOD,
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=2119,
serialized_end=2438,
)
_HOLIDAY_POWERPARAMETER = _descriptor.Descriptor(
name='Holiday_PowerParameter',
full_name='Holiday_PowerParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='power', full_name='Holiday_PowerParameter.power', index=0,
number=1, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='scale', full_name='Holiday_PowerParameter.scale', index=1,
number=2, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='shift', full_name='Holiday_PowerParameter.shift', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=2440,
serialized_end=2518,
)
_HOLIDAY_RELUPARAMETER = _descriptor.Descriptor(
name='Holiday_ReLUParameter',
full_name='Holiday_ReLUParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='negative_slope', full_name='Holiday_ReLUParameter.negative_slope', index=0,
number=1, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=2520,
serialized_end=2570,
)
_HOLIDAY_SOFTMAXPARAMETER = _descriptor.Descriptor(
name='Holiday_SoftmaxParameter',
full_name='Holiday_SoftmaxParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='axis', full_name='Holiday_SoftmaxParameter.axis', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=2572,
serialized_end=2615,
)
_HOLIDAY_SLICEPARAMETER = _descriptor.Descriptor(
name='Holiday_SliceParameter',
full_name='Holiday_SliceParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='axis', full_name='Holiday_SliceParameter.axis', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='slice_point', full_name='Holiday_SliceParameter.slice_point', index=1,
number=2, type=13, cpp_type=3, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='slice_dim', full_name='Holiday_SliceParameter.slice_dim', index=2,
number=3, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=2617,
serialized_end=2701,
)
_HOLIDAY_LAYERPARAMETER = _descriptor.Descriptor(
name='Holiday_LayerParameter',
full_name='Holiday_LayerParameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='bottom', full_name='Holiday_LayerParameter.bottom', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='top', full_name='Holiday_LayerParameter.top', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='name', full_name='Holiday_LayerParameter.name', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='type', full_name='Holiday_LayerParameter.type', index=3,
number=4, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='top_index', full_name='Holiday_LayerParameter.top_index', index=4,
number=5, type=13, cpp_type=3, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='bottom_index', full_name='Holiday_LayerParameter.bottom_index', index=5,
number=6, type=13, cpp_type=3, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='concat_param', full_name='Holiday_LayerParameter.concat_param', index=6,
number=7, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='convolution_param', full_name='Holiday_LayerParameter.convolution_param', index=7,
number=8, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='eltwise_param', full_name='Holiday_LayerParameter.eltwise_param', index=8,
number=9, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='exp_param', full_name='Holiday_LayerParameter.exp_param', index=9,
number=10, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='inner_product_param', full_name='Holiday_LayerParameter.inner_product_param', index=10,
number=11, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='lrn_param', full_name='Holiday_LayerParameter.lrn_param', index=11,
number=12, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='memory_data_param', full_name='Holiday_LayerParameter.memory_data_param', index=12,
number=13, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='pooling_param', full_name='Holiday_LayerParameter.pooling_param', index=13,
number=14, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='power_param', full_name='Holiday_LayerParameter.power_param', index=14,
number=15, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='relu_param', full_name='Holiday_LayerParameter.relu_param', index=15,
number=16, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='softmax_param', full_name='Holiday_LayerParameter.softmax_param', index=16,
number=17, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='slice_param', full_name='Holiday_LayerParameter.slice_param', index=17,
number=18, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='transform_param', full_name='Holiday_LayerParameter.transform_param', index=18,
number=19, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='batchNormlise_param', full_name='Holiday_LayerParameter.batchNormlise_param', index=19,
number=20, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='scale_param', full_name='Holiday_LayerParameter.scale_param', index=20,
number=21, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='prelu_param', full_name='Holiday_LayerParameter.prelu_param', index=21,
number=22, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='crop_parameter', full_name='Holiday_LayerParameter.crop_parameter', index=22,
number=23, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=2704,
serialized_end=3688,
)
_HOLIDAY_BLOBPROTO.fields_by_name['shape'].message_type = _HOLIDAY_BLOBSHAPE
_HOLIDAY_PRELUPARAMETER.fields_by_name['param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_CONVOLUTIONPARAMETER.fields_by_name['bias_param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_CONVOLUTIONPARAMETER.fields_by_name['kernel_param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_BATCHNORMLISEPARAMETER.fields_by_name['mean_param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_BATCHNORMLISEPARAMETER.fields_by_name['covariance_param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_SCALEPARAMETER.fields_by_name['scale_param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_SCALEPARAMETER.fields_by_name['bias_param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_ELTWISEPARAMETER.fields_by_name['operation'].enum_type = _HOLIDAY_ELTWISEPARAMETER_ELTWISEOP
_HOLIDAY_ELTWISEPARAMETER_ELTWISEOP.containing_type = _HOLIDAY_ELTWISEPARAMETER
_HOLIDAY_MEMORYDATAPARAMETERPROCESS.fields_by_name['mean_file'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_INNERPRODUCTPARAMETER.fields_by_name['bias_param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_INNERPRODUCTPARAMETER.fields_by_name['Inner_param'].message_type = _HOLIDAY_BLOBPROTO
_HOLIDAY_LRNPARAMETER.fields_by_name['norm_region'].enum_type = _HOLIDAY_LRNPARAMETER_NORMREGION
_HOLIDAY_LRNPARAMETER_NORMREGION.containing_type = _HOLIDAY_LRNPARAMETER
_HOLIDAY_POOLINGPARAMETER.fields_by_name['pool'].enum_type = _HOLIDAY_POOLINGPARAMETER_POOLMETHOD
_HOLIDAY_POOLINGPARAMETER_POOLMETHOD.containing_type = _HOLIDAY_POOLINGPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['concat_param'].message_type = _HOLIDAY_CONCATPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['convolution_param'].message_type = _HOLIDAY_CONVOLUTIONPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['eltwise_param'].message_type = _HOLIDAY_ELTWISEPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['exp_param'].message_type = _HOLIDAY_EXPPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['inner_product_param'].message_type = _HOLIDAY_INNERPRODUCTPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['lrn_param'].message_type = _HOLIDAY_LRNPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['memory_data_param'].message_type = _HOLIDAY_MEMORYDATAPARAMETERPROCESS
_HOLIDAY_LAYERPARAMETER.fields_by_name['pooling_param'].message_type = _HOLIDAY_POOLINGPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['power_param'].message_type = _HOLIDAY_POWERPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['relu_param'].message_type = _HOLIDAY_RELUPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['softmax_param'].message_type = _HOLIDAY_SOFTMAXPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['slice_param'].message_type = _HOLIDAY_SLICEPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['transform_param'].message_type = _HOLIDAY_TRANSFORMATIONPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['batchNormlise_param'].message_type = _HOLIDAY_BATCHNORMLISEPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['scale_param'].message_type = _HOLIDAY_SCALEPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['prelu_param'].message_type = _HOLIDAY_PRELUPARAMETER
_HOLIDAY_LAYERPARAMETER.fields_by_name['crop_parameter'].message_type = _HOLIDAY_CROPPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_BlobShape'] = _HOLIDAY_BLOBSHAPE
DESCRIPTOR.message_types_by_name['Holiday_BlobProto'] = _HOLIDAY_BLOBPROTO
DESCRIPTOR.message_types_by_name['Holiday_PreluParameter'] = _HOLIDAY_PRELUPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_CropParameter'] = _HOLIDAY_CROPPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_ConvolutionParameter'] = _HOLIDAY_CONVOLUTIONPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_BatchNormliseParameter'] = _HOLIDAY_BATCHNORMLISEPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_ScaleParameter'] = _HOLIDAY_SCALEPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_ConcatParameter'] = _HOLIDAY_CONCATPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_EltwiseParameter'] = _HOLIDAY_ELTWISEPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_ExpParameter'] = _HOLIDAY_EXPPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_MemoryDataParameterProcess'] = _HOLIDAY_MEMORYDATAPARAMETERPROCESS
DESCRIPTOR.message_types_by_name['Holiday_TransformationParameter'] = _HOLIDAY_TRANSFORMATIONPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_InnerProductParameter'] = _HOLIDAY_INNERPRODUCTPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_LRNParameter'] = _HOLIDAY_LRNPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_PoolingParameter'] = _HOLIDAY_POOLINGPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_PowerParameter'] = _HOLIDAY_POWERPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_ReLUParameter'] = _HOLIDAY_RELUPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_SoftmaxParameter'] = _HOLIDAY_SOFTMAXPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_SliceParameter'] = _HOLIDAY_SLICEPARAMETER
DESCRIPTOR.message_types_by_name['Holiday_LayerParameter'] = _HOLIDAY_LAYERPARAMETER
Holiday_BlobShape = _reflection.GeneratedProtocolMessageType('Holiday_BlobShape', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_BLOBSHAPE,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_BlobShape)
))
_sym_db.RegisterMessage(Holiday_BlobShape)
Holiday_BlobProto = _reflection.GeneratedProtocolMessageType('Holiday_BlobProto', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_BLOBPROTO,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_BlobProto)
))
_sym_db.RegisterMessage(Holiday_BlobProto)
Holiday_PreluParameter = _reflection.GeneratedProtocolMessageType('Holiday_PreluParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_PRELUPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_PreluParameter)
))
_sym_db.RegisterMessage(Holiday_PreluParameter)
Holiday_CropParameter = _reflection.GeneratedProtocolMessageType('Holiday_CropParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_CROPPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_CropParameter)
))
_sym_db.RegisterMessage(Holiday_CropParameter)
Holiday_ConvolutionParameter = _reflection.GeneratedProtocolMessageType('Holiday_ConvolutionParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_CONVOLUTIONPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_ConvolutionParameter)
))
_sym_db.RegisterMessage(Holiday_ConvolutionParameter)
Holiday_BatchNormliseParameter = _reflection.GeneratedProtocolMessageType('Holiday_BatchNormliseParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_BATCHNORMLISEPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_BatchNormliseParameter)
))
_sym_db.RegisterMessage(Holiday_BatchNormliseParameter)
Holiday_ScaleParameter = _reflection.GeneratedProtocolMessageType('Holiday_ScaleParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_SCALEPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_ScaleParameter)
))
_sym_db.RegisterMessage(Holiday_ScaleParameter)
Holiday_ConcatParameter = _reflection.GeneratedProtocolMessageType('Holiday_ConcatParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_CONCATPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_ConcatParameter)
))
_sym_db.RegisterMessage(Holiday_ConcatParameter)
Holiday_EltwiseParameter = _reflection.GeneratedProtocolMessageType('Holiday_EltwiseParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_ELTWISEPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_EltwiseParameter)
))
_sym_db.RegisterMessage(Holiday_EltwiseParameter)
Holiday_ExpParameter = _reflection.GeneratedProtocolMessageType('Holiday_ExpParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_EXPPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_ExpParameter)
))
_sym_db.RegisterMessage(Holiday_ExpParameter)
Holiday_MemoryDataParameterProcess = _reflection.GeneratedProtocolMessageType('Holiday_MemoryDataParameterProcess', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_MEMORYDATAPARAMETERPROCESS,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_MemoryDataParameterProcess)
))
_sym_db.RegisterMessage(Holiday_MemoryDataParameterProcess)
Holiday_TransformationParameter = _reflection.GeneratedProtocolMessageType('Holiday_TransformationParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_TRANSFORMATIONPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_TransformationParameter)
))
_sym_db.RegisterMessage(Holiday_TransformationParameter)
Holiday_InnerProductParameter = _reflection.GeneratedProtocolMessageType('Holiday_InnerProductParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_INNERPRODUCTPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_InnerProductParameter)
))
_sym_db.RegisterMessage(Holiday_InnerProductParameter)
Holiday_LRNParameter = _reflection.GeneratedProtocolMessageType('Holiday_LRNParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_LRNPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_LRNParameter)
))
_sym_db.RegisterMessage(Holiday_LRNParameter)
Holiday_PoolingParameter = _reflection.GeneratedProtocolMessageType('Holiday_PoolingParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_POOLINGPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_PoolingParameter)
))
_sym_db.RegisterMessage(Holiday_PoolingParameter)
Holiday_PowerParameter = _reflection.GeneratedProtocolMessageType('Holiday_PowerParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_POWERPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_PowerParameter)
))
_sym_db.RegisterMessage(Holiday_PowerParameter)
Holiday_ReLUParameter = _reflection.GeneratedProtocolMessageType('Holiday_ReLUParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_RELUPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_ReLUParameter)
))
_sym_db.RegisterMessage(Holiday_ReLUParameter)
Holiday_SoftmaxParameter = _reflection.GeneratedProtocolMessageType('Holiday_SoftmaxParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_SOFTMAXPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_SoftmaxParameter)
))
_sym_db.RegisterMessage(Holiday_SoftmaxParameter)
Holiday_SliceParameter = _reflection.GeneratedProtocolMessageType('Holiday_SliceParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_SLICEPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_SliceParameter)
))
_sym_db.RegisterMessage(Holiday_SliceParameter)
Holiday_LayerParameter = _reflection.GeneratedProtocolMessageType('Holiday_LayerParameter', (_message.Message,), dict(
DESCRIPTOR = _HOLIDAY_LAYERPARAMETER,
__module__ = 'HolidayCNN_proto_pb2'
# @@protoc_insertion_point(class_scope:Holiday_LayerParameter)
))
_sym_db.RegisterMessage(Holiday_LayerParameter)
# @@protoc_insertion_point(module_scope)
DATA_NAME = 'data'
OUTPUT_LAYER = ''
#MODEL_PARAM = '/home/dev01/workshop/projects/MXNet2SeetaNet/model-0015.params'
#MODEL_JSON = '/home/dev01/workshop/projects/MXNet2SeetaNet/model-symbol.json'
LOAD_EPOCH = 15
INPUT_DATA_CHANNEL = 3
INPUT_DATA_HEIGHT = 248
INPUT_DATA_WIDTH = 248
protoc -I=./ --python_out=./ HolidayCNN_proto.proto
python Drive_Converter.py
#_*_ coding: UTF-8 _*_
import HolidayCNN_proto_pb2 as hd
import mxnet as mx
from mxnet_graph import load_graph
import numpy as np
import logging
import config as cfg
import GProgress as GP
logging.basicConfig(
level=logging.INFO,
format="[%(asctime)s] %(name)s:%(levelname)s: %(message)s"
)
class OPType(object):
Enum_ConvolutionLayer = 0
Enum_EltwiseLayer = 1
Enum_ConcatLayer = 2
Enum_ExpLayer = 3
Enum_InnerProductLayer = 4
Enum_LRNLayer = 5
Enum_MemoryDataLayer = 6
Enum_PoolingLayer = 7
Enum_PowerLayer = 8
Enum_ReLULayer = 9
Enum_SoftmaxLayer = 10
Enum_SliceLayer = 11
Enum_BatchNormliseLayer = 13
Enum_ScaleLayer = 14
Enum_SplitLayer = 15
Enum_PreReLULayer = 16
Enum_DeconvolutionLayer = 17
Enum_CropLayer = 18
Enum_FinallyLayer = 1001
def fuzzy_query(name_list, key_words):
for name in name_list:
suffix = name.split('_')[-1]
if suffix == key_words:
return name
return None
parse_int = lambda x: int(x)
def parse_tuple(string):
# parse '(1, 2)'
length = len(string)
string = string[1: -1]
str_list = string.split(',')
return [parse_int(i) for i in str_list]
class Converter(object):
def __init__(self, graph, arg_params, aux_params):
self.__graph = graph
self.__arg_params = arg_params
self.__aux_params = aux_params
self.__register_converter()
def __register_converter(self):
self.__name_converter_map = {
'BatchNorm': self.convert_bn,
'Scale': self.convert_scale,
'Activation': self.convert_activation,
'add_n': self.convert_add_n,
'Convolution': self.convert_conv,
'FullyConnected': self.convert_fc,
# 'Flatten': self.convert_bn,
'Pooling': self.convert_pool,
'SoftmaxOutput': self.convert_softmax,
'null': self.convert_preprocess_data, # refer to data layer
}
def convert_bn(self, layer):
bn_wapper = self.__create_wapper(layer)
bn_wapper.type = OPType.Enum_BatchNormliseLayer
bn_wapper.name = layer.name
bn = bn_wapper.batchNormlise_param
mean_name = fuzzy_query(layer.param, 'mean')
var_name = fuzzy_query(layer.param, 'var')
mean_param = bn.mean_param
covariance_param = bn.covariance_param
mean = self.__aux_params[mean_name].asnumpy()
covariance = self.__aux_params[var_name].asnumpy()
# SCALE参数是为了适应Caffe的计算方式,固定设置为1, 不要修改
# TODO: eps需要从模型中读取
SCALE = 1.0
eps = float(layer.attr['eps'])
mean = mean * SCALE
covariance = covariance * SCALE + eps
covariance = np.sqrt(covariance)
self.__create_blob(mean_param, mean.shape, mean.reshape([-1]))
self.__create_blob(covariance_param, covariance.shape, covariance.reshape([-1]))
return bn_wapper
def convert_scale(self, layer):
scale_wapper = self.__create_wapper(layer)
scale_wapper.type = OPType.Enum_ScaleLayer
scale_wapper.name = layer.name
scale = scale_wapper.scale_param
gamma_name = fuzzy_query(layer.param, 'gamma')
beta_name = fuzzy_query(layer.param, 'beta')
scale_param = scale.scale_param
bias_param = scale.bias_param
gamma = self.__arg_params[gamma_name].asnumpy()
beta = self.__arg_params[beta_name].asnumpy()
self.__create_blob(scale_param, gamma.shape, gamma.reshape([-1]))
self.__create_blob(bias_param, beta.shape, beta.reshape([-1]))
return scale_wapper
def convert_conv(self, layer):
wapper = self.__create_wapper(layer)
wapper.type = OPType.Enum_ConvolutionLayer
wapper.name = layer.name
# TODO: dilation_height and dilation_widt is not implemented
attr = layer.attr
conv = wapper.convolution_param
weight = fuzzy_query(layer.param, 'weight')
bias = fuzzy_query(layer.param, 'bias')
if bias:
bias_data = self.__arg_params[bias].asnumpy()
bias_blob = conv.bias_param
self.__create_blob(bias_blob, bias_data.shape, bias_data.reshape([-1]))
weight_data = self.__arg_params[weight].asnumpy()
weight_blob = conv.kernel_param
self.__create_blob(weight_blob, weight_data.shape, weight_data.reshape([-1]))
conv.num_output = int(attr['num_filter'])
if "pad" in attr:
pad = parse_tuple(attr['pad'])
else:
pad = (0, 0)
conv.pad_height = pad[0]
conv.pad_width = pad[1]
kernel = parse_tuple(attr['kernel'])
conv.kernel_height = kernel[0]
conv.kernel_width = kernel[1]
if 'stride' in attr:
stride = parse_tuple(attr['stride'])
else:
stride = (0, 0)
conv.stride_height = stride[0]
conv.stride_width = stride[1]
# TODO:暂时将dilation的值强制设置为1,后续mxnet模型有需要设置为其他值再做修改
conv.dilation_height = 1
conv.dilation_width = 1
return wapper
def convert_concat(self, layer):
wapper = self.__create_wapper(layer)
wapper.type = OPType.Enum_ConcatLayer
wapper.name = layer.name
concat = wapper.concat_param
return wapper
def convert_add_n(self, layer):
wapper = self.__create_wapper(layer)
wapper.type = OPType.Enum_EltwiseLayer
wapper.name = layer.name
addn = wapper.eltwise_param
return wapper
def convert_pow(self, layer):
raise NotImplementedError
def convert_preprocess_data(self, layer):
wapper = self.__create_wapper(layer)
wapper.type = OPType.Enum_MemoryDataLayer
wapper.name = layer.name
preprocess = wapper.memory_data_param
preprocess.scale = 1 / 255.0
preprocess.channels = cfg.INPUT_DATA_CHANNEL
preprocess.height = cfg.INPUT_DATA_HEIGHT
preprocess.width = cfg.INPUT_DATA_WIDTH
preprocess.batch_size = 1
# preprocess.mean_value.append(0)
# preprocess.mean_value.append(0)
# preprocess.mean_value.append(0)
# swp BGR to RGB
preprocess.channel_swaps.append(2)
preprocess.channel_swaps.append(1)
preprocess.channel_swaps.append(0)
return wapper
def convert_fc(self, layer):
wapper = self.__create_wapper(layer)
wapper.type = OPType.Enum_InnerProductLayer
wapper.name = layer.name
fc = wapper.inner_product_param
weight = fuzzy_query(layer.param, 'weight')
bias = fuzzy_query(layer.param, 'bias')
weight_data = self.__arg_params[weight].asnumpy()
if bias:
bias_data = self.__arg_params[bias].asnumpy()
bias_blob = fc.bias_param
self.__create_blob(bias_blob, bias_data.shape, bias_data.reshape([-1]))
weight_blob = fc.Inner_param
# 这里weight_data做了转置,为了适应SeetaNet的计算方式,但是shape不要转置。
fc.transpose = True
self.__create_blob(weight_blob, weight_data.shape, weight_data.T.reshape([-1]))
fc.num_output = int(layer.attr['num_hidden'])
fc.axis = 1
return wapper
def convert_lrn(self, layer):
raise NotImplementedError
def convert_pool(self, layer):
'MaxPooling AvgPooling'
attr = layer.attr
wapper = self.__create_wapper(layer)
wapper.type = OPType.Enum_PoolingLayer
wapper.name = layer.name
pool = wapper.pooling_param
if attr['pool_type'] == 'avg':
pool.pool = hd.Holiday_PoolingParameter.AVE
elif attr['pool_type'] == 'max':
pool.pool = hd.Holiday_PoolingParameter.MAX
else:
raise NotImplementedError
pad = parse_tuple(attr['pad'])
# TODO:现在强制VALID=True,后续有mxnet使用其他pool padding的方式时再修改
pool.valid = True
pool.pad_height = pad[0]
pool.pad_width = pad[1]
kernel = parse_tuple(attr['kernel'])
pool.kernel_height = kernel[0]
pool.kernel_width = kernel[1]
stride = parse_tuple(attr['stride'])
pool.stride_height = stride[0]
pool.stride_width = stride[1]
return wapper
def convert_activation(self, layer):
print(layer.attr['act_type'])
wapper = self.__create_wapper(layer)
wapper.type = OPType.Enum_ReLULayer
wapper.name = layer.name
if layer.attr['act_type'] == 'relu':
relu = wapper.relu_param
return wapper
raise NotImplementedError
def convert_softmax(self, layer):
wapper = self.__create_wapper(layer)
wapper.type = OPType.Enum_SoftmaxLayer
wapper.name = layer.name
if layer.attr is not None and len(layer.attr) != 0:
raise NotImplementedError
softmax = wapper.softmax_param
softmax.axis = 1
return wapper
def convert_slice(self, layer):
raise NotImplementedError
def __create_blob(self, blob, shape, vec_data):
blob_shape = blob.shape
blob_shape.dim.extend(shape)
for d in vec_data:
#print(d)
#print(type(d))
d = float(d)
blob.data.append(d)
return blob
def __create_wapper(self, layer):
wapper = hd.Holiday_LayerParameter()
for b in layer.bottom_name:
wapper.bottom.append(b)
for t in layer.top_name:
wapper.top.append(t)
for i in layer.bottom_idx:
wapper.bottom_index.append(i)
for i in layer.top_idx:
wapper.top_index.append(i)
return wapper
def __last_layer(self):
wapper = hd.Holiday_LayerParameter()
wapper.top_index.append(100001)
wapper.bottom_index.append(100001)
wapper.type = OPType.Enum_FinallyLayer
return wapper
def write_layer_names(self, fo, label=False):
# idx=1没有对应真实的layer,只是为了写入blob name时,需要强制插入idx=1的label blob
length = np.array(self.__graph.idx_count, np.int64)
if not label:
length = length - 1
fo.write(length.tobytes())
for i in range(self.__graph.idx_count):
if i == 1:
if label:
layer_name = 'label'
else:
continue
else:
layer_name = self.__graph.get_name(i)
length = len(layer_name)
length = np.array(length, np.int64)
fo.write(length.tobytes())
encode_layer_name = layer_name.encode('utf-8')
try:
fo.write(str.encode(encode_layer_name))
except:
fo.write(str.encode(layer_name))
def write_param_names(self, fo):
count = 0
for layer in self.__graph:
for _ in layer.param:
count += 1
length = np.array(count, np.int64)
fo.write(length.tobytes())
for layer in self.__graph:
for param_name in layer.param:
length = len(param_name)
length = np.array(length, np.int64)
fo.write(length.tobytes())
fo.write(str.encode(param_name))
def convert(self,seetanet_model):
fo = open(seetanet_model, 'wb')
# 先写入blob的名称,再写入layer的名称,由于这里将blob和layer近似等同起来,所有写入的都是layer的name。
# 唯一的区别是,blob中多一个label blob
self.write_layer_names(fo, True)
self.write_layer_names(fo)
try:
flag = 1;
for i in range(self.__graph.idx_count):
if i == 1: continue
layer = self.__graph.get_layer(self.__graph.get_name(i))
#logging.info(layer.name)
# for layer in self.__graph:
op_type = layer.type
# todo:
if op_type == 'Flatten':
continue
converter = self.__name_converter_map.get(op_type, None)
if converter is None:
raise NotImplementedError(op_type)
hd = converter(layer)
if isinstance(hd, list) or isinstance(hd, tuple):
for i in hd:
ss = i.SerializeToString()
length = np.array(len(ss), np.int64)
fo.write(length.tobytes())
fo.write(ss)
else:
ss = hd.SerializeToString()
length = np.array(len(ss), np.int64)
fo.write(length.tobytes())
fo.write(ss)
#post return progress
if(i > (flag * (self.__graph.idx_count / 8))):
GP.set_progress_var(flag * 10 + 10)
GP.Post_return()
flag = flag + 1
# 加最后一个标记层
wapper = self.__last_layer()
ss = wapper.SerializeToString()
length = np.array(len(ss), np.int64)
fo.write(length.tobytes())
fo.write(ss)
except Exception, e:
GP.set_err_msg_var(repr(e))
finally:
fo.close()
def test():
sym, arg_params, aux_params = mx.model.\
load_checkpoint(cfg.MODEL_PREFIX, cfg.LOAD_EPOCH)
logging.info(load_graph(sym))
def load_checkpoint(params, network_struct):
symbol = mx.sym.load(network_struct)
save_dict = mx.nd.load(params)
arg_params = {}
aux_params = {}
for k, v in save_dict.items():
tp, name = k.split(':', 1)
if tp == 'arg':
arg_params[name] = v
if tp == 'aux':
aux_params[name] = v
return (symbol, arg_params, aux_params)
#function created by xuboxuan@20170807
#if __name__ == '__main__':
def Run_Converter(model_param,model_json,seetanet_model):
#parser = argparse.ArgumentParser(description='manual to this converter script')
#parser.add_argument('--model_param',type=str,default = None)
#parser.add_argument('--model_json',type=str,default = None)
#args = parser.parse_args()
try:
sym, arg_params, aux_params = \
load_checkpoint(model_param, model_json)
graph = load_graph(model_json)
converter = Converter(graph, arg_params, aux_params)
logging.info('start to convert model parameters')
converter.convert(seetanet_model)
logging.info('convert success!!!')
return true
except Exception, e:
return None
#########################################################################
# name: keep.sh
# Author: seetatech xuboxuan
# mail: boxuan.xu@seetatech.com
# Created Time: 16 Aug 2017 07:49:46 PM CST
#########################################################################
#!/bin/bash
sn=`ps x | grep Drive_Converter.py | grep -v grep | awk '{print $1}'`
echo $sn
if [ "${sn}" = "" ] #如果为空,表示进程未启动
then
echo no sdk_process
mv log log_bak/`date +%s`.log.bak
nohup python Drive_Converter.py > log 2>&1 &
echo start success
fi
No preview for this file type
#_*_ coding: UTF-8 _*_
import json
import logging
import config as cfg
def fuzzy_query(name_list, key_words):
for name in name_list:
suffix = name.split('_')[-1]
if suffix == key_words:
return name
return None
class Layer(object):
def __init__(self):
self.name = ''
self.bottom_name = set()
self.bottom_idx = set()
self.top_name = set()
self.top_idx = set()
self.param = set() # param name
self.type = 'null'
self.attr = None
class Graph(object):
def __init__(self):
self.layer_idx = {} # name -> idx
self.idx_layer = {} # idx -> name
self.name_layer = {} # name -> layer
self.idx_count = 0
def add_name_layer(self, name, layer):
if name in self.name_layer:
logging.info('name %s: have been in name_layer' % name)
return
self.name_layer[name] = layer
def get_layer(self, name):
layer = self.name_layer.get(name, None)
if layer is None:
raise KeyError(name)
return layer
def get_idx(self, layer_name):
idx = self.layer_idx.get(layer_name, None)
if idx is None:
raise ValueError(layer_name)
return idx
def get_name(self, idx):
name = self.idx_layer.get(idx, None)
if name is None:
raise ValueError(idx)
return name
def get_root_layer(self):
pass
def get_all_layers(self):
return self.name_layer.values()
def __iter__(self):
return iter(self.name_layer.values())
def separate_layer_param(sym_name_list):
layer_output_name = []
param_name = []
for sym_name in sym_name_list:
if sym_name.split('_')[-1] == 'output':
idx = sym_name.rfind('_')
# layer_output_name.append(sym_name[:idx])
layer_output_name.append(sym_name)
else:
param_name.append(sym_name)
return layer_output_name, param_name
def set_top_name(graph):
for layer in graph:
for l in graph:
if layer.name in l.bottom_name:
layer.top_name.add(l.name)
# 最底层的数据层必须有两个top idx
if layer.name == cfg.DATA_NAME:
layer.top_name.add(cfg.DATA_NAME)
def set_idx(graph):
try:
from Queue import Queue
except:
from queue import Queue
name_set = set()
q = Queue()
q.put(graph.get_layer(cfg.DATA_NAME))
while q.qsize() > 0:
layer = q.get()
layer_name = layer.name
flag = False
for b in layer.bottom_name:
# 这里的处理是为了保证初始一个layer时,他的输入blob已经都被初始化
if b not in name_set:
q.put(layer)
flag = True
break
if flag:
continue
if layer_name in name_set:
continue
else:
name_set.add(layer_name)
graph.layer_idx[layer_name] = graph.idx_count
graph.idx_layer[graph.idx_count] = layer_name
if layer_name == cfg.DATA_NAME:
# idx=1是为了预留给label blob
graph.idx_count += 2
else:
graph.idx_count += 1
for n in layer.top_name:
q.put(graph.get_layer(n))
for layer in graph:
for b in layer.bottom_name:
layer.bottom_idx.add(graph.get_idx(b))
#for t in layer.top_name:
layer.top_idx.add(graph.layer_idx[layer.name])
if layer.name == cfg.DATA_NAME:
layer.top_idx.add(1)
def remove_layer(graph, type='Flatten'):
'''layer_name所指向的layer必须只能有一个输入,即len(bottom_name) == 1'''
remove_layer_list = []
for layer in graph:
if layer.type == type:
remove_layer_list.append(layer)
layer_name = layer.name
bottom_name = layer.bottom_name.pop()
if len(layer.bottom_name) > 0:
raise ValueError
for l in graph:
if layer_name in l.bottom_name:
l.bottom_name.remove(layer_name)
l.bottom_name.add(bottom_name)
for l in remove_layer_list:
logging.info('remove: {}'.format(l.name))
graph.name_layer.pop(l.name)
def mxnetbn_to_bn_scale(graph):
'''将mxnet的bn层分为SeetaNet(Caffe)中的bn和scale层'''
bn_layers = []
for layer in graph.get_all_layers():
if layer.type == 'BatchNorm':
bn_layers.append(layer)
for layer in bn_layers:
new_name = 'Scale-%s' % layer.name
scale_layer = Layer()
scale_layer.type = 'Scale'
scale_layer.name = new_name
graph.add_name_layer(new_name, scale_layer)
scale_layer.bottom_name.add(layer.name)
for l in graph.get_all_layers():
if layer.name in l.bottom_name and l.type != 'Scale':
l.bottom_name.remove(layer.name)
l.bottom_name.add(scale_layer.name)
gamma_name = fuzzy_query(layer.param, 'gamma')
beta_name = fuzzy_query(layer.param, 'beta')
layer.param.remove(gamma_name)
layer.param.remove(beta_name)
scale_layer.param.add(gamma_name)
scale_layer.param.add(beta_name)
def construct_graph(json_file):
graph = Graph()
with open(json_file) as f:
symbol = json.load(f)
node_num = len(symbol['nodes'])
nodes = symbol['nodes']
for i in range(node_num):
node = nodes[i]
if str(node['op']) == 'null' and str(node['name']) != cfg.DATA_NAME:
continue
layer_name = node['name']
layer = Layer()
layer.name = layer_name
layer.type = node['op']
# layer.top_name = '%s_output' % node['name']
layer.attr = node.get('attr', None)
graph.add_name_layer(layer.name, layer)
for input in node['inputs']:
input_node = nodes[input[0]]
if str(input_node['op']) != 'null' or (str(input_node['name']) == cfg.DATA_NAME):
layer.bottom_name.add(str(input_node['name']))
if str(input_node['op']) == 'null':
layer.param.add(str(input_node['name']))
if not str(input_node['name']).startswith(str(input_node['name'])):
raise NotImplementedError('shared param is not implemented')
if layer_name == cfg.OUTPUT_LAYER:
break
return graph
def load_graph(json_file):
logging.info('construct graph')
graph = construct_graph(json_file)
logging.info('remove Flatten layer')
# 由于SeetaNet(Caffe)没有Fatten层,因此将此层去掉
remove_layer(graph)
# copy_data_layer(graph)
logging.info('split bn layer to bn layer and scale layer')
mxnetbn_to_bn_scale(graph)
set_top_name(graph)
set_idx(graph)
logging.info('load graph over')
return graph
# if __name__ == '__main__':
# graph = load_graph(cfg.MODEL_JSON_FILE)
#!/bin/sh
kill -9 `ps x | grep Drive | grep -v grep | awk '{print $1}'`
sleep 1
mv log log_bak/`date +%s`.log.bak
nohup python Drive_Converter.py > log 2>&1 &
echo start success
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!