Meituan-AutoML / Lenna

Apache License 2.0
78 stars 4 forks source link

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

Open Zekun525 opened 1 month ago

Zekun525 commented 1 month ago

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.