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

Move instantiation of metrics / CELoss to init method to avoid numerous moves to model device #115

Open
CharlesGaydon opened this issue Mar 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@CharlesGaydon
Copy link
Collaborator

Use less .to(self.device) by instantiating everything in the init function.

self.train_iou = MulticlassJaccardIndex(self.hparams.num_classes).to(self.device)

@CharlesGaydon CharlesGaydon added the enhancement New feature or request label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant