这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@JeremyRand
Copy link
Contributor

Various software requires models in TorchScript format. As one example, this can be used to convert PyTorch models to ncnn models via PNNX, without using ONNX as an intermediary.

@JeremyRand
Copy link
Contributor Author

I'm not quite sure what the Pyright warning is about; that line is based on PyTorch and ncnn docs, and it seems to work fine. Suggestions on how to make Pyright happy would be welcome.

@joeyballentine
Copy link
Member

If there's an assertion you can make about the type of trace to make Pyright know it's an instance of some class, then that would be one way. Otherwise, if you're sure this works and it's complaining for no reason, just throw an ignore comment on it so it stops complaining

@joeyballentine joeyballentine force-pushed the main branch 2 times, most recently from d0e4684 to 5007ca9 Compare October 22, 2025 21:07
Jeremy Rand added 2 commits November 15, 2025 15:31
Various software requires models in TorchScript format. As one example,
this can be used to convert PyTorch models to ncnn models via PNNX,
without using ONNX as an intermediary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants