Skip to content

Commit

Permalink
pnnx fix indent errors (#5113)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdbug authored Oct 27, 2023
1 parent 37a108c commit 16524ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/pnnx/src/save_ncnn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
{
Expand Down

0 comments on commit 16524ca

Please sign in to comment.