self.model_toolkit_conf=[]#The quantity is equal to the InferOp quantity,Engine--OP
self.model_toolkit_conf=[
]#The quantity is equal to the InferOp quantity,Engine--OP
self.resource_conf=None
self.memory_optimization=False
self.ir_optimization=False
self.model_conf=collections.OrderedDict()# save the serving_server_conf.prototxt content (feed and fetch information) this is a map for multi-model in a workflow
self.workflow_fn="workflow.prototxt"#only one for one Service,Workflow--Op
self.resource_fn="resource.prototxt"#only one for one Service,model_toolkit_fn and general_model_config_fn is recorded in this file
self.infer_service_fn="infer_service.prototxt"#only one for one Service,Service--Workflow
self.model_toolkit_fn=[]#["general_infer_0/model_toolkit.prototxt"]The quantity is equal to the InferOp quantity,Engine--OP
self.general_model_config_fn=[]#["general_infer_0/general_model.prototxt"]The quantity is equal to the InferOp quantity,Feed and Fetch --OP
self.subdirectory=[]#The quantity is equal to the InferOp quantity, and name = node.name = engine.name
# save the serving_server_conf.prototxt content (feed and fetch information) this is a map for multi-model in a workflow
self.model_conf=collections.OrderedDict()
self.workflow_fn="workflow.prototxt"#only one for one Service,Workflow--Op
self.resource_fn="resource.prototxt"#only one for one Service,model_toolkit_fn and general_model_config_fn is recorded in this file
self.infer_service_fn="infer_service.prototxt"#only one for one Service,Service--Workflow
#["general_infer_0/model_toolkit.prototxt"]The quantity is equal to the InferOp quantity,Engine--OP
self.model_toolkit_fn=[]
#["general_infer_0/general_model.prototxt"]The quantity is equal to the InferOp quantity,Feed and Fetch --OP
self.general_model_config_fn=[]
#The quantity is equal to the InferOp quantity, and name = node.name = engine.name
self.subdirectory=[]
self.cube_config_fn="cube.conf"
self.workdir=""
self.max_concurrency=0
...
...
@@ -71,12 +76,16 @@ class Server(object):
self.use_trt=False
self.use_lite=False
self.use_xpu=False
self.model_config_paths=collections.OrderedDict()# save the serving_server_conf.prototxt path (feed and fetch information) this is a map for multi-model in a workflow
# save the serving_server_conf.prototxt path (feed and fetch information) this is a map for multi-model in a workflow