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

Nonetype #10

Open
xinjiTian opened this issue Oct 6, 2023 · 0 comments
Open

Nonetype #10

xinjiTian opened this issue Oct 6, 2023 · 0 comments

Comments

@xinjiTian
Copy link

File "main_simmim_pt.py", line 302, in train_one_epoch
G1R = torch.autograd.grad(L1, param[0].clone(), retain_graph=True, create_graph=True)
File "D:\txj\envs\swin2\lib\site-packages\torch\autograd_init_.py", line 236, in grad
inputs, allow_unused, accumulate_grad=False)
RuntimeError: One of the differentiated Tensors appears to not have been used in the graph. Set allow_unused=True if this is the desired behavior.

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