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

question #4

Open
zhangkai07 opened this issue Nov 30, 2024 · 0 comments
Open

question #4

zhangkai07 opened this issue Nov 30, 2024 · 0 comments

Comments

@zhangkai07
Copy link

Starting Training Loop...
Traceback (most recent call last):
File "D:\project_python\doctor_project\LYC\20241130\222.py", line 42, in
wt.fit(X=X, lr=1e-2, num_epochs=10)
File "C:\ProgramData\miniconda3\envs\py10\lib\site-packages\awave\transform.py", line 86, in fit
trainer(train_loader, epochs=num_epochs)
File "C:\ProgramData\miniconda3\envs\py10\lib\site-packages\awave\utils\train.py", line 84, in call
mean_epoch_loss = self._train_epoch(train_loader, epoch)
File "C:\ProgramData\miniconda3\envs\py10\lib\site-packages\awave\utils\train.py", line 110, in train_epoch
iter_loss = self.train_iteration(data)
File "C:\ProgramData\miniconda3\envs\py10\lib\site-packages\awave\utils\train.py", line 158, in train_iteration
loss.backward()
File "C:\ProgramData\miniconda3\envs\py10\lib\site-packages\torch_tensor.py", line 525, in backward
torch.autograd.backward(
File "C:\ProgramData\miniconda3\envs\py10\lib\site-packages\torch\autograd_init
.py", line 260, in backward
grad_tensors
= make_grads(tensors, grad_tensors, is_grads_batched=False)
File "C:\ProgramData\miniconda3\envs\py10\lib\site-packages\torch\autograd_init
.py", line 141, in _make_grads
raise RuntimeError(msg)
RuntimeError: grad can be implicitly created only for real scalar outputs but got torch.complex64

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