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

SASRecF模型出现两个矩阵无法相乘 #2104

Open
lovedididi opened this issue Nov 1, 2024 · 0 comments
Open

SASRecF模型出现两个矩阵无法相乘 #2104

lovedididi opened this issue Nov 1, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@lovedididi
Copy link

Traceback (most recent call last):
File "/home/yy/FDSA/RecBole-master/run_recbole.py", line 51, in
run(
File "/home/yy/FDSA/RecBole-master/recbole/quick_start/quick_start.py", line 52, in run
res = run_recbole(
File "/home/yy/FDSA/RecBole-master/recbole/quick_start/quick_start.py", line 141, in run_recbole
flops = get_flops(model, dataset, config["device"], logger, transform)
File "/home/yy/FDSA/RecBole-master/recbole/utils/utils.py", line 347, in get_flops
wrapper(*inputs)
File "/home/yy/.conda/envs/recbole/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/yy/.conda/envs/recbole/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/home/yy/FDSA/RecBole-master/recbole/utils/utils.py", line 288, in forward
return self.model.predict(interaction)
File "/home/yy/FDSA/RecBole-master/recbole/model/sequential_recommender/sasrecf.py", line 173, in predict
seq_output = self.forward(item_seq, item_seq_len)
File "/home/yy/FDSA/RecBole-master/recbole/model/sequential_recommender/sasrecf.py", line 137, in forward
input_emb = self.concat_layer(input_concat)
File "/home/yy/.conda/envs/recbole/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/yy/.conda/envs/recbole/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1582, in _call_impl
result = forward_call(*args, **kwargs)
File "/home/yy/.conda/envs/recbole/lib/python3.10/site-packages/torch/nn/modules/linear.py", line 116, in forward
return F.linear(input, self.weight, self.bias)
RuntimeError: mat1 and mat2 shapes cannot be multiplied (50x384 and 448x64)
请问,出现这种情况是SASRecF需要配置一些别的参数吗?

@lovedididi lovedididi added the bug Something isn't working label Nov 1, 2024
@lovedididi lovedididi changed the title [🐛BUG] 用一句话描述您的问题。 SASRecF模型出现两个矩阵无法相乘 Nov 1, 2024
@Fotiligner Fotiligner assigned Fotiligner and unassigned Fotiligner Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants