Skip to content

location_weight should be initialized in constructor and not moved to device for every batch #1545

@clessig

Description

@clessig

What happened?

See

weights_locations = weights_locations.to(device=self.device, non_blocking=True)

location_weight should be initialized in constructor and not moved to device for every batch

What are the steps to reproduce the bug?

No response

Hedgedoc link to logs and more information. This ticket is public, do not attach files directly.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmodelRelated to model training or definition (not generic infra)

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions