towhee.serve.triton.python_model_builder.PickledCallablePyModelBuilder

class towhee.serve.triton.python_model_builder.PickledCallablePyModelBuilder(module_name: str, python_file_path: str, pickle_file_name: str, input_annotations: List[Tuple[Any, Tuple]], output_annotations: List[Tuple[Any, Tuple]])[source]

Bases: PyModelBuilder

Build python model from pickled

Methods

build

gen_blank_lines

gen_class_name

gen_execute

gen_finalize

gen_imports

gen_initialize

__init__(module_name: str, python_file_path: str, pickle_file_name: str, input_annotations: List[Tuple[Any, Tuple]], output_annotations: List[Tuple[Any, Tuple]])[source]