Skip to content

Commit

Permalink
1. Trans string to char in getInputType function
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed May 31, 2024
1 parent e59bbb2 commit 06cb344
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion tools/pnnx/Releasenotes
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@ dev.1.0.11.20240529
1. Support parse F.one_hot

dev.1.0.12.20240529
1. Add getInputType function in infer py
1. Add getInputType function in infer py

dev.1.0.13.20240530
1. Trans string to char in getInputType function
2 changes: 1 addition & 1 deletion tools/pnnx/src/ir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3157,7 +3157,7 @@ int Graph::python_infer(const std::string& pypath, const std::string& binpath,
for (size_t i = 0; i < input_types.size(); i++)
{
std::string input_type = input_types[i];
fprintf(pyfp, "'%s'", input_type);
fprintf(pyfp, "'%s'", input_type.c_str());
if (i + 1 != input_types.size())
fprintf(pyfp, ", ");
}
Expand Down
2 changes: 1 addition & 1 deletion tools/pnnx/src/py_proj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// #include <torch/extension.h>
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
#define MYLIBRARY_VERSION "dev.1.0.12.20240529"
#define MYLIBRARY_VERSION "dev.1.0.13.20240530"
using namespace pnnx_graph;
using namespace pnnx_ir;
namespace py = pybind11;
Expand Down

0 comments on commit 06cb344

Please sign in to comment.