My Project
|
#include <UniformSupport.h>
Public Member Functions | |
UniformQuantizedValueConverter (UniformQuantizedType uniformType) | |
UniformQuantizedValueConverter (double scale, double zeroPoint, double clampMin, double clampMax, uint32_t storageBitWidth, bool isSigned) | |
UniformQuantizedValueConverter (double scale, double zeroPoint, APFloat clampMin, APFloat clampMax, uint32_t storageBitWidth, bool isSigned) | |
virtual APInt | quantizeFloatToInt (APFloat expressedValue) const |
int64_t | quantizeFloatToInt64 (APFloat expressedValue) const |
virtual | ~UniformQuantizedValueConverter () |
Reference implementation of converting between real numbers and values represented by a UniformQuantizedType. Note that this is not expected to be speedy and may be superseded eventually by a more optimal implementation. Also, the interface assumes that quantization is done per-layer and will need to be wider for various per-channel schemes. As such, this is a placeholder.
|
inlineexplicit |
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inline |