Skip to content

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

Open

Description

@CharlesGaydon

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions