Standard Mode
Please use the hbm_infer.hbm_rpc_session module for Standard Mode .
API Parameter Descriptions
-
HbmRpcSession Member Method:
__init__Initializes an HbmRpcSession object.
- Parameters
The compression feature is processed by software, so enabling it usually leads to increased inference latency. The optimization of the compression function primarily focuses on reducing network load and improving throughput. The compression quality depends on the internal correlation within the input and output data. It is generally not recommended to enable compression for floating-point input/output, but it may be worth enabling for image inputs or segmentation outputs.
-
HbmRpcSession Member Method:
get_input_infoGet model input information.
- Returns
A dictionary describing the model input information. For specific format details, refer to the example below:
-
HbmRpcSession Member Method:
get_output_infoGet model output information.
- Returns
Returns a dictionary describing the model output information , with a format consistent with the return value of
get_input_info. -
HbmRpcSession Member Method:
show_input_output_infoPrint model input and output information.
-
HbmRpcSession Member Method:
__call__Perform model inference.
- Parameters
- Returns
Model output, of dictionary type. The
keyis the name of the output tensor, and thevalueis the output tensor, which has the same type as the model input. -
HbmRpcSession Member Method:
close_serverShut down the server and clean up server-side resources.
-
HbmRpcSession Member Method:
get_profileTo obtain the time statistics for each stage of inference, the
with_profileparameter must be set toTrue, otherwise an error will be raised. The return value is of dictionary type, and its reference format is as follows: -
HbmRpcSession Member Method:
get_profile_last_frameTo obtain the time statistics for each stage of the most recent frame inference, the
with_profileparameter must be set toTrue, otherwise an error will be raised. The return value is of dictionary type, and its reference format is as follows:
