houshijie-2020

Results 3 comments of houshijie-2020

# 平台(如果交叉编译请再附上交叉编译目标平台): # Platform(Include target platform as well if cross-compiling): # Github版本: # Github Version: 直接下载ZIP包请提供下载日期以及压缩包注释里的git版本(可通过``7z l zip包路径``命令并在输出信息中搜索``Comment`` 获得,形如``Comment = bc80b11110cd440aacdabbf59658d630527a7f2b``)。 git clone请提供 ``git commit`` 第一行的commit id Provide date (or...

#include #include #include #include "Python.h" using namespace std; void Python_run_str(const string& str) { PyRun_SimpleString(str.c_str()); } void Python_run_file(const string& file_name) { FILE* file; file = fopen(file_name.c_str(), "r"); PyRun_SimpleFile(file, file_name.c_str()); fclose(file); }...

i am trying to embed the interpreter (MNN is a a custom C API extension) **the comiple command:** gcc test_mnn.cpp -lstdc++ -I/usr/local/nogil-py/include/python3.9/ -lm -L/usr/local/nogil-py/lib/ -lpython3.9 -lpthread -lutil -ldl -o test_mnn...