Commit 09740556 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

add a python interface for int8 quantization.

parent 4cf9bd01
......@@ -187,6 +187,9 @@ PYBIND11_MODULE(migraphx, m)
migraphx::quantize(p, ins_names);
});
m.def("quantize", [](migraphx::program& p) { migraphx::quantize(p, {"all"}); });
m.def("quantize_int8", [](migraphx::program& p, std::vector<std::string>& ins_names) {
migraphx::quantize_int8(p, ins_names);
});
m.def("quantize_int8",
[](migraphx::program& p,
std::vector<std::string>& ins_names,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment