ts.utils package¶
Submodules¶
ts.utils.timeit_decorator module¶
timeit decorator
ts.utils.util module¶
Utility functions for TorchServe
- class ts.utils.util.PT2Backend(value)[source]¶
-
An enumeration.
- AOT_CUDAGRAPHS = 'aot_cudagraphs'¶
- AOT_EAGER = 'aot_eager'¶
- AOT_NVFUSER = 'aot_nvfuser'¶
- EAGER = 'eager'¶
- FX2TRT = 'fx2trt'¶
- INDUCTOR = 'inductor'¶
- IPEX = 'ipex'¶
- NVFUSER = 'nvfuser'¶
- OFI = 'ofi'¶
- ONNXRT = 'onnxrt'¶
- ts.utils.util.list_classes_from_module(module, parent_class=None)[source]¶
Parse user defined module to get all model service classes in it.
- Parameters
module –
parent_class –
- Returns
List of model service class definitions
- ts.utils.util.load_compiler_config(config_file_path)[source]¶
Load a compiler {compiler_name -> compiler } Can be extended to also support kwargs for ONNX and TensorRT
Module contents¶
Util files for TorchServe