Web Analytics

kp.inference


kp.inference.generic_data_inference_receive(device_group)

Generic raw data inference multiple input receive. When multiple input data inference is done, this function can be used to get the results in RAW format. Note that data received is in Kneron RAW format, users need kp.inference.generic_inference_retrieve_float_node()/kp.inference.generic_inference_retrieve_fixed_node() to convert RAW format data to floating-point/fixed-point data.


kp.inference.generic_data_inference_send(device_group, generic_inference_input_descriptor)

Generic raw data inference multiple input send. This is to perform a multiple input data inference, it is non-blocking if device buffer queue is not full. When this is performed, user can issue kp.inference.generic_data_inference_receive() to get the result. In addition, to have better performance, users can issue multiple kp.inference.generic_data_inference_send() then start to receive results through kp.inference.generic_data_inference_receive().


kp.inference.generic_image_inference_receive(device_group)

Generic image inference multiple input receive. When multiple input image inference is done, this function can be used to get the results in RAW format. Note that the data received is in Kneron RAW format, users need kp.inference.generic_inference_retrieve_float_node()/kp.inference.generic_inference_retrieve_fixed_node() to convert RAW format data to floating-point/fixed-point data.


kp.inference.generic_image_inference_send(device_group, generic_inference_input_descriptor)

Generic image inference multiple input send. This is to perform multiple input image inference, it is non-blocking if device buffer queue is not full. When this is performed, user can issue kp.inference.generic_image_inference_receive() to get the result. In addition, to have better performance, users can issue multiple kp.inference.generic_image_inference_send() then start to receive results through kp.inference.generic_image_inference_receive().


kp.inference.generic_inference_retrieve_fixed_node(node_idx, generic_raw_result, channels_ordering)

Retrieve single node output fixed-point data from GenericRawResult/GenericRawBypassPreProcResult/GenericImageInferenceResult/GenericDataInferenceResult object.


kp.inference.generic_inference_retrieve_float_node(node_idx, generic_raw_result, channels_ordering)

Retrieve single node output floating-point data from GenericRawResult/GenericRawBypassPreProcResult/GenericImageInferenceResult/GenericDataInferenceResult object.


kp.inference.set_inference_configuration(device_group, inference_configuration)

Configure inference settings.