Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/onnxruntime_mlas.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ onnxruntime_add_static_library(onnxruntime_mlas
${MLAS_SRC_DIR}/eltwise.cpp
${MLAS_SRC_DIR}/erf.cpp
${MLAS_SRC_DIR}/compute.cpp
${MLAS_SRC_DIR}/dequantize.cpp
${MLAS_SRC_DIR}/quantize.cpp
${MLAS_SRC_DIR}/qgemm_kernel_default.cpp
${MLAS_SRC_DIR}/qladd.cpp
Expand Down
15 changes: 15 additions & 0 deletions onnxruntime/core/mlas/inc/mlas.h
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,21 @@ MlasQuantizeLinearS4(
int8_t ZeroPoint
);

//
// Linear dequantization routines.
//

template<typename InputType>
void
MLASCALL
MlasDequantizeLinear(
const InputType* Input,
float* Output,
size_t N,
float Scale,
InputType ZeroPoint
);

/**
* @brief Requantize a block of the intermediate buffer to the output buffer,
* optionally adding the supplied bias
Expand Down
Loading
Loading