-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PNNX is an open standard for PyTorch model interoperability #3262
Conversation
fixed compile error
前段时间在忙秋招的事,今天试了一下编译通过啦,比心比心 |
|
收到 |
大佬好,我尝试转换一个GAN模型,能生成pnnx.bin,pnnx.param,pnnx.py,debug.bin,debug.param,debug2.param.debug2.bin,但并不能生成ncnn.param和ncnn.bin。调试后发现main函数中,pnnx::pass_ncnn(pnnx_graph)失败,进入pass_ncnn.cpp中 模块ncnn::expand_expression(g)不能通过,进入ncnn::expand_expression(g)函数发现 转后的pnnx,py 文件为: class Model(nn.Module):
def export_torchscript():
def test_inference():
** os: Windosw 10 VS2017 X64 Debug Libtorch 1.10+cpu; Protobuf 3.4.0 麻烦大佬看下,不胜感激。 |
ncnn/tools/pnnx/src/pass_ncnn/chain_multi_output.cpp文件中 #include "chain_multi_output.h" #include namespace pnnx { namespace ncnn { void chain_multi_output(Graph& graph)
} } // namespace ncnn } // namespace pnnx` |
layer F.grid_sample not exists or registered |
https://github.com/nihui/ncnn/blob/a8992896f909d81cc1ba7d56bdc7298ebda7ecc9/tools/pnnx/README.md 这个 commit, 一下子就上传了一大堆的源代码。@nihui 可以分享 git history log 么? |
Now F.gridsample has been implemented. #4288 |
欢迎留言交流 w
welcome to leave your idea here