"...resnet50_tensorflow.git" did not exist on "b021889449fc20e9632c179ff0688c184838b365"
Commit 7f6f4acb authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent d9c55df0
...@@ -182,8 +182,10 @@ PYBIND11_MODULE(migraphx, m) ...@@ -182,8 +182,10 @@ PYBIND11_MODULE(migraphx, m)
}); });
m.def("generate_argument", &migraphx::generate_argument, py::arg("s"), py::arg("seed") = 0); m.def("generate_argument", &migraphx::generate_argument, py::arg("s"), py::arg("seed") = 0);
m.def("quantize", [](migraphx::program& p, std::vector<std::string>& ins_names) {migraphx::quantize(p, ins_names); }); m.def("quantize", [](migraphx::program& p, std::vector<std::string>& ins_names) {
m.def("quantize", [](migraphx::program& p) {migraphx::quantize(p, {"all"}); }); migraphx::quantize(p, ins_names);
});
m.def("quantize", [](migraphx::program& p) { migraphx::quantize(p, {"all"}); });
#ifdef HAVE_GPU #ifdef HAVE_GPU
m.def("allocate_gpu", &migraphx::gpu::allocate_gpu, py::arg("s"), py::arg("host") = false); m.def("allocate_gpu", &migraphx::gpu::allocate_gpu, py::arg("s"), py::arg("host") = false);
......
...@@ -101,10 +101,7 @@ void quantize(program& prog, const std::vector<std::string>& ins_names) ...@@ -101,10 +101,7 @@ void quantize(program& prog, const std::vector<std::string>& ins_names)
} }
} }
void quantize(program& prog) void quantize(program& prog) { quantize(prog, {"all"}); }
{
quantize(prog, {"all"});
}
} // namespace MIGRAPHX_INLINE_NS } // namespace MIGRAPHX_INLINE_NS
} // namespace migraphx } // namespace migraphx
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