Quantization

Quantization#

Applies to Linux

2023-10-10

4 min read time

quantize_fp16#

Warning

doxygenfunction: Unable to resolve function “migraphx::internal::quantize_fp16” with arguments “None”. Candidate function could not be parsed. Parsing error is Error when parsing function declaration. If the function has no return type: Error in declarator or parameters-and-qualifiers Invalid C++ declaration: Expecting “(” in parameters-and-qualifiers. [error at 16] MIGRAPHX_EXPORT void quantize_fp16 (program &prog, const std::vector< std::string > &ins_names={“all”}) —————-^ If the function has a return type: Error in declarator or parameters-and-qualifiers If pointer to member declarator: Invalid C++ declaration: Expected identifier in nested name, got keyword: void [error at 20] MIGRAPHX_EXPORT void quantize_fp16 (program &prog, const std::vector< std::string > &ins_names={“all”}) ——————–^ If declarator-id: Invalid C++ declaration: Expected identifier in nested name, got keyword: void [error at 20] MIGRAPHX_EXPORT void quantize_fp16 (program &prog, const std::vector< std::string > &ins_names={“all”}) ——————–^

quantize_int8#

Warning

doxygenfunction: Unable to resolve function “migraphx::internal::quantize_int8” with arguments “None”. Candidate function could not be parsed. Parsing error is Error when parsing function declaration. If the function has no return type: Error in declarator or parameters-and-qualifiers Invalid C++ declaration: Expecting “(” in parameters-and-qualifiers. [error at 16] MIGRAPHX_EXPORT void quantize_int8 (program &prog, const target &t, const std::vector< parameter_map > &calibration, const std::vector< std::string > &ins_names={“dot”, “convolution”}) —————-^ If the function has a return type: Error in declarator or parameters-and-qualifiers If pointer to member declarator: Invalid C++ declaration: Expected identifier in nested name, got keyword: void [error at 20] MIGRAPHX_EXPORT void quantize_int8 (program &prog, const target &t, const std::vector< parameter_map > &calibration, const std::vector< std::string > &ins_names={“dot”, “convolution”}) ——————–^ If declarator-id: Invalid C++ declaration: Expected identifier in nested name, got keyword: void [error at 20] MIGRAPHX_EXPORT void quantize_int8 (program &prog, const target &t, const std::vector< parameter_map > &calibration, const std::vector< std::string > &ins_names={“dot”, “convolution”}) ——————–^