Skip to content
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

TorchScript: Unknown function '_0.tolist' #1193

Closed
ewwerpm opened this issue Nov 26, 2023 · 1 comment
Closed

TorchScript: Unknown function '_0.tolist' #1193

ewwerpm opened this issue Nov 26, 2023 · 1 comment
Labels

Comments

@ewwerpm
Copy link

ewwerpm commented Nov 26, 2023

image
报这个错,模型文件地址:https://huggingface.co/ewwerpm/m4-sWE-0.1B.pt/tree/main
是由 RWKV-4-World-CHNtuned-0.1B-v1-20230617-ctx4096.pth 文件,采用分片的方法,分片出来的第一个文件。关键的是分片的时候,采用了 torch.jit.script()函数,导致打不开。如果采用torch.jit.trace()函数保存,就可以打开。但是trace()保存下来的模型,没有用。只有script保存下来的模型,才有用。但是有用的打不开,如何才能用netron打开这个script保存下来的模型文件呢?谢谢

@ewwerpm ewwerpm added the bug label Nov 26, 2023
@lutzroeder lutzroeder changed the title netron7.3.1,打不开torchscript模型文件 TorchScript: Unknown function '_0.tolist' Nov 26, 2023
@lutzroeder
Copy link
Owner

Duplicate of #1061

@lutzroeder lutzroeder marked this as a duplicate of #1061 Nov 26, 2023
@lutzroeder lutzroeder closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants