Skip to content

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

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions