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

RuntimeError: Attempted to call variable.set_data(tensor), but variable and tensor have incompatible tensor type. #14

Open
Zekun525 opened this issue Sep 3, 2024 · 0 comments

Comments

@Zekun525
Copy link

Zekun525 commented Sep 3, 2024

Traceback (most recent call last):
File "/home/user/lhh/Lenna-main/Lenna-main/chat.py", line 138, in
main(sys.argv[1:])
File "/home/user/lhh/Lenna-main/Lenna-main/chat.py", line 51, in main
param[1].data = trained_weight[save_name]
RuntimeError: Attempted to call variable.set_data(tensor), but variable and tensor have incompatible tensor type.

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

No branches or pull requests

1 participant