maccel.model_variant_handle.ModelVariantHandle Class Reference#
|
SDK qb Runtime Library v0.29
MCS001-KR
|
Public Member Functions | |
| __init__ (self, _cMaccel.ModelVariantHandle _model_variant_handle) | |
| from_cpp (cls, _cMaccel.ModelVariantHandle _model_variant_handle) | |
| List[_Shape] | get_model_input_shape (self) |
| List[_Shape] | get_model_output_shape (self) |
| List[BufferInfo] | get_input_buffer_info (self) |
| List[BufferInfo] | get_output_buffer_info (self) |
| List[Scale] | get_input_scale (self) |
| List[Scale] | get_output_scale (self) |
| List[Buffer] | acquire_input_buffer (self, List[List[int]] seqlens=[]) |
| List[Buffer] | acquire_output_buffer (self, List[List[int]] seqlens=[]) |
| None | release_buffer (self, List[Buffer] buffer) |
| None | reposition_inputs (self, List[np.ndarray] inputs, List[Buffer] input_bufs, List[List[int]] seqlens=[]) |
| None | reposition_outputs (self, List[Buffer] output_bufs, List[np.ndarray] outputs, List[List[int]] seqlens=[]) |
Protected Attributes | |
| _model_variant_handle = _model_variant_handle | |
| List[_Shape] | _output_shape = self.get_model_output_shape() |
Detailed Description
Definition at line 16 of file model_variant_handle.py.
Constructor & Destructor Documentation
◆ __init__()
| maccel.model_variant_handle.ModelVariantHandle.__init__ | ( | self, | |
| _cMaccel.ModelVariantHandle | _model_variant_handle ) |
Definition at line 17 of file model_variant_handle.py.
Member Function Documentation
◆ from_cpp()
| maccel.model_variant_handle.ModelVariantHandle.from_cpp | ( | cls, | |
| _cMaccel.ModelVariantHandle | _model_variant_handle ) |
Definition at line 22 of file model_variant_handle.py.
◆ get_model_input_shape()
| List[_Shape] maccel.model_variant_handle.ModelVariantHandle.get_model_input_shape | ( | self | ) |
Definition at line 25 of file model_variant_handle.py.
◆ get_model_output_shape()
| List[_Shape] maccel.model_variant_handle.ModelVariantHandle.get_model_output_shape | ( | self | ) |
Definition at line 28 of file model_variant_handle.py.
◆ get_input_buffer_info()
| List[BufferInfo] maccel.model_variant_handle.ModelVariantHandle.get_input_buffer_info | ( | self | ) |
Definition at line 31 of file model_variant_handle.py.
◆ get_output_buffer_info()
| List[BufferInfo] maccel.model_variant_handle.ModelVariantHandle.get_output_buffer_info | ( | self | ) |
Definition at line 37 of file model_variant_handle.py.
◆ get_input_scale()
| List[Scale] maccel.model_variant_handle.ModelVariantHandle.get_input_scale | ( | self | ) |
Definition at line 43 of file model_variant_handle.py.
◆ get_output_scale()
| List[Scale] maccel.model_variant_handle.ModelVariantHandle.get_output_scale | ( | self | ) |
Definition at line 46 of file model_variant_handle.py.
◆ acquire_input_buffer()
| List[Buffer] maccel.model_variant_handle.ModelVariantHandle.acquire_input_buffer | ( | self, | |
| List[List[int]] | seqlens = [] ) |
Definition at line 51 of file model_variant_handle.py.
◆ acquire_output_buffer()
| List[Buffer] maccel.model_variant_handle.ModelVariantHandle.acquire_output_buffer | ( | self, | |
| List[List[int]] | seqlens = [] ) |
Definition at line 56 of file model_variant_handle.py.
◆ release_buffer()
| None maccel.model_variant_handle.ModelVariantHandle.release_buffer | ( | self, | |
| List[Buffer] | buffer ) |
Definition at line 61 of file model_variant_handle.py.
◆ reposition_inputs()
| None maccel.model_variant_handle.ModelVariantHandle.reposition_inputs | ( | self, | |
| List[np.ndarray] | inputs, | ||
| List[Buffer] | input_bufs, | ||
| List[List[int]] | seqlens = [] ) |
Definition at line 64 of file model_variant_handle.py.
◆ reposition_outputs()
| None maccel.model_variant_handle.ModelVariantHandle.reposition_outputs | ( | self, | |
| List[Buffer] | output_bufs, | ||
| List[np.ndarray] | outputs, | ||
| List[List[int]] | seqlens = [] ) |
Definition at line 75 of file model_variant_handle.py.
Member Data Documentation
◆ _model_variant_handle
|
protected |
Definition at line 18 of file model_variant_handle.py.
◆ _output_shape
|
protected |
Definition at line 19 of file model_variant_handle.py.
The documentation for this class was generated from the following file:
Generated by