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

I met a mistake. #20

Open
jhzmike opened this issue Dec 26, 2022 · 0 comments
Open

I met a mistake. #20

jhzmike opened this issue Dec 26, 2022 · 0 comments

Comments

@jhzmike
Copy link

jhzmike commented Dec 26, 2022

Traceback (most recent call last):
File "D:\skrsuper\python1\pytorch\cost\train.py", line 97, in
loss_log = model.fit(
File "D:\skrsuper\python1\pytorch\cost\cost.py", line 299, in fit
loss = self.cost(x_q, x_k)
File "C:\Users\lx.conda\envs\py39\lib\site-packages\torch\nn\modules\module.py", line 1190, in _call_impl
return forward_call(*input, **kwargs)
File "D:\skrsuper\python1\pytorch\cost\cost.py", line 145, in forward
q_t, q_s = self.encoder_q(x_q)
File "C:\Users\lx.conda\envs\py39\lib\site-packages\torch\nn\modules\module.py", line 1190, in _call_impl
return forward_call(*input, **kwargs)
File "D:\skrsuper\python1\pytorch\cost\models\encoder.py", line 163, in forward
out = mod(x) # b t d
File "C:\Users\lx.conda\envs\py39\lib\site-packages\torch\nn\modules\module.py", line 1190, in _call_impl
return forward_call(*input, **kwargs)
File "D:\skrsuper\python1\pytorch\cost\models\encoder.py", line 65, in forward
output_fft[:, self.start:self.end] = self._forward(input_fft)
File "D:\skrsuper\python1\pytorch\cost\models\encoder.py", line 69, in _forward
output = torch.einsum('bti,tio->bto', input[:, self.start:self.end], self.weight)
File "C:\Users\lx.conda\envs\py39\lib\site-packages\torch\functional.py", line 378, in einsum
return _VF.einsum(equation, operands) # type: ignore[attr-defined]
RuntimeError: einsum(): subscript t has size 501 for operand 1 which does not broadcast with previously seen size 301

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