diff --git a/tools/pnnx/src/save_ncnn.cpp b/tools/pnnx/src/save_ncnn.cpp index c6d1e37cc89..93c0f98389f 100644 --- a/tools/pnnx/src/save_ncnn.cpp +++ b/tools/pnnx/src/save_ncnn.cpp @@ -395,10 +395,10 @@ int save_ncnn(const Graph& g, const std::string& parampath, const std::string& b fprintf(pyfp, "\n"); fprintf(pyfp, " with ncnn.Net() as net:\n"); - fprintf(pyfp, " net.load_param(\"%s\")\n", parampath.c_str()); - fprintf(pyfp, " net.load_model(\"%s\")\n", binpath.c_str()); + fprintf(pyfp, " net.load_param(\"%s\")\n", parampath.c_str()); + fprintf(pyfp, " net.load_model(\"%s\")\n", binpath.c_str()); fprintf(pyfp, "\n"); - fprintf(pyfp, " with net.create_extractor() as ex:\n"); + fprintf(pyfp, " with net.create_extractor() as ex:\n"); for (int input_index = 0;; input_index++) {