API Reference Manual  1.45.0
spec/ml_quantize.h File Reference

ODP Machine Learning (ML) quantization functions. More...

#include <odp/visibility_begin.h>
#include <odp/api/std_types.h>
#include <odp/visibility_end.h>
Include dependency graph for spec/ml_quantize.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void odp_ml_fp32_to_uint8 (uint8_t *dst_u8, const float *src_fp32, uint32_t num, float scale, uint8_t zerop)
 Quantize 32-bit float to uint8_t. More...
 
void odp_ml_fp32_from_uint8 (float *dst_fp32, const uint8_t *src_u8, uint32_t num, float scale, uint8_t zerop)
 De-quantize 32-bit float from uint8_t. More...
 
void odp_ml_fp32_to_int8 (int8_t *dst_i8, const float *src_fp32, uint32_t num, float scale, int8_t zerop)
 Quantize 32-bit float to int8_t. More...
 
void odp_ml_fp32_from_int8 (float *dst_fp32, const int8_t *src_i8, uint32_t num, float scale, int8_t zerop)
 De-quantize 32-bit float from int8_t. More...
 
void odp_ml_fp32_to_fp16 (uint16_t *dst_fp16, const float *src_fp32, uint32_t num)
 Quantize 32-bit float to 16-bit float. More...
 
void odp_ml_fp32_from_fp16 (float *dst_fp32, const uint16_t *src_fp16, uint32_t num)
 De-quantize 32-bit float from 16-bit float. More...
 

Detailed Description

ODP Machine Learning (ML) quantization functions.

Definition in file spec/ml_quantize.h.