ts package¶
Subpackages¶
- ts.metrics package
- ts.model_service package
- ts.protocol package
- ts.torch_handler package
- Subpackages
- ts.torch_handler.request_envelope package
- ts.torch_handler.unit_tests package
- Subpackages
- Submodules
- ts.torch_handler.unit_tests.test_base_handler module
- ts.torch_handler.unit_tests.test_envelopes module
- ts.torch_handler.unit_tests.test_image_classifier module
- ts.torch_handler.unit_tests.test_image_segmenter module
- ts.torch_handler.unit_tests.test_mnist_kf module
- ts.torch_handler.unit_tests.test_object_detector module
- Module contents
- Submodules
- ts.torch_handler.base_handler module
- ts.torch_handler.contractions module
- ts.torch_handler.densenet_handler module
- ts.torch_handler.image_classifier module
- ts.torch_handler.image_segmenter module
- ts.torch_handler.object_detector module
- ts.torch_handler.text_classifier module
- ts.torch_handler.text_handler module
- ts.torch_handler.vision_handler module
- Module contents
- Subpackages
- ts.utils package
Submodules¶
ts.arg_parser module¶
This module parses the arguments given through the torchserve command-line. This is used by model-server at runtime.
ts.context module¶
Context object of incoming request
- class ts.context.Context(model_name, model_dir, manifest, batch_size, gpu, mms_version, limit_max_image_pixels=True, metrics=None, model_yaml_config=None)[source]¶
Bases:
object
Context stores model relevant worker information Some fixed during load times and some
- property metrics¶
- property request_processor¶
- set_all_response_status(code: int = 200, phrase: str = '') None [source]¶
Set the status code of individual requests :param phrase: :param code: :return:
- set_response_status(code: int = 200, phrase: str = '', idx: int = 0)[source]¶
Set the status code of individual requests :param phrase: :param idx: The index data in the list(data) that is sent to the handle() method :param code: :return:
- property system_properties¶
ts.model_loader module¶
ts.model_server module¶
File to define the entry point to Model Server
ts.model_service_worker module¶
ts.service module¶
ts.version module¶
This is the current version of TorchServe
Module contents¶
This module does the following: a. Starts model-server. b. Creates end-points based on the configured models. c. Exposes standard “ping” and “api-description” endpoints. d. Waits for servicing inference requests.