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

FourierEncoder unused parameters. #722

Closed
Aske-Rosted opened this issue May 17, 2024 · 0 comments
Closed

FourierEncoder unused parameters. #722

Aske-Rosted opened this issue May 17, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Aske-Rosted
Copy link
Collaborator

Bug
The bug happens if less than 6 features is used in the FourierEncoder class. The script will terminate with the following error

RuntimeError: It looks like your LightningModule has parameters that were not used in producing the loss returned by training_step. If this is intentional, you must enable the detection of unused parameters in DDP, either by setting the string value strategy='ddp_find_unused_parameters_true' or by setting the flag in the strategy with strategy=DDPStrategy(find_unused_parameters=True)

This happens because self.aux_emb is initialized whether or not it is used.

@Aske-Rosted Aske-Rosted added the bug Something isn't working label May 17, 2024
@Aske-Rosted Aske-Rosted self-assigned this May 17, 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

1 participant