You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 82b880d
Browse filesBrowse the repository at this point in the historyBrowse files
\fn void* SimdSynetDynamicQuantizedInnerProductInit(size_t M, size_t N, size_t K, SimdBool bias, SimdConvolutionActivationType activation);
7009
+
7010
+
\short Initializes dynamic quantized inner product (matrix multiplication) algorithm for FP32 input, INT8 weight and FP32 output.
7011
+
7012
+
\note This function has a C++ wrapper: Simd::SynetDynamicQuantizedInnerProduct.
7013
+
7014
+
\param [in] M - a height of A and height of C matrices.
7015
+
\param [in] N - a width of B and width of C matrices.
7016
+
\param [in] K - a width of A and height of B matrices.
7017
+
\param [in] bias - a flag to add bias to output matrix C.
7018
+
\param [in] activation - an activation function type applied after the rest operations.
7019
+
\return a pointer to quantized inner product context. On error it returns NULL. It must be released with using of function ::SimdRelease.
7020
+
This pointer is used in functions ::SimdSynetDynamicQuantizedInnerProductInternalBufferSize, ::SimdSynetDynamicQuantizedInnerProductExternalBufferSize,
7021
+
::SimdSynetDynamicQuantizedInnerProductInfo, ::SimdSynetDynamicQuantizedInnerProductSetParams and ::SimdSynetDynamicQuantizedInnerProductForward.
7022
+
*/
7023
+
SIMD_API void* SimdSynetDynamicQuantizedInnerProductInit(size_t M, size_t N, size_t K, SimdBool bias, SimdConvolutionActivationType activation);
\short Gets size in bytes of internal buffers allocated by dynamic quantized inner product context.
7030
+
7031
+
\note This function has a C++ wrapper: Simd::SynetDynamicQuantizedInnerProduct.
7032
+
7033
+
\param [in] context - a pointer to dynamic quantized inner product context. It must be created by function ::SimdSynetDynamicQuantizedInnerProductInit and released by function ::SimdRelease.
7034
+
\return size in bytes of internal buffers used inside the algorithm.
\short Gets size in bytes of external temporary buffer required for dynamic quantized inner product.
7043
+
7044
+
\note This function has a C++ wrapper: Simd::SynetDynamicQuantizedInnerProduct.
7045
+
7046
+
\param [in] context - a pointer to dynamic quantized inner product context. It must be created by function ::SimdSynetDynamicQuantizedInnerProductInit and released by function ::SimdRelease.
7047
+
\return size in bytes of external temporary buffer required by ::SimdSynetDynamicQuantizedInnerProductForward.
\short Gets description of selected dynamic quantized inner product implementation.
7056
+
7057
+
\note This function has a C++ wrapper: Simd::SynetDynamicQuantizedInnerProduct.
7058
+
7059
+
\param [in] context - a pointer to dynamic quantized inner product context. It must be created by function ::SimdSynetDynamicQuantizedInnerProductInit and released by function ::SimdRelease.
7060
+
\return string with description of selected implementation (extension and algorithm name).
\short Sets constant matrix B, bias and dynamic quantization parameters for quantized inner product.
7069
+
7070
+
\note This function has a C++ wrapper: Simd::SynetDynamicQuantizedInnerProduct.
7071
+
7072
+
\param [in, out] context - a pointer to dynamic quantized inner product context. It must be created by function ::SimdSynetDynamicQuantizedInnerProductInit and released by function ::SimdRelease.
7073
+
\param [in] weight - a pointer to constant INT8 B matrix. The size of the array must be equal to K * N;
7074
+
\param [in] scale - a pointer to per-output-channel FP32 scales of B matrix. The size of the array must be equal to N.
7075
+
\param [in] bias - a pointer to per-output-channel FP32 bias. Can be NULL. Otherwise the size of the array must be equal to N.
7076
+
\param [in] params - a pointer to FP32 activation parameters (see ::SimdConvolutionActivationType). Can be NULL.
\short Performs forward propagation of dynamic quantized inner product.
7085
+
7086
+
\note This function has a C++ wrapper: Simd::SynetDynamicQuantizedInnerProduct.
7087
+
7088
+
\param [in] context - a pointer to dynamic quantized inner product context. It must be created by function ::SimdSynetDynamicQuantizedInnerProductInit and released by function ::SimdRelease.
7089
+
\param [in] A - a pointer to FP32 A matrix with size M*K.
7090
+
\param [out] buf - a pointer to external buffer. The size of the external temporary buffer is determined by function ::SimdSynetDynamicQuantizedInnerProductExternalBufferSize.
7091
+
Can be NULL (it causes usage of internal buffer).
7092
+
\param [out] C - a pointer to FP32 C matrix with size M*N.
0 commit comments