Skip to content
Snippets Groups Projects
  • Daniel CARRON's avatar
    507a6207
    Move criterion to selected device · 507a6207
    Daniel CARRON authored
    As the criterion is not part of the model but instead a hyperparameter
    due to the use of configuration files, it is not moved to the GPU if
    selected as a device. We therefore manually move the criterion to the proper
    device, which is bad practice when using lightning but works.
    507a6207
    History
    Move criterion to selected device
    Daniel CARRON authored
    As the criterion is not part of the model but instead a hyperparameter
    due to the use of configuration files, it is not moved to the GPU if
    selected as a device. We therefore manually move the criterion to the proper
    device, which is bad practice when using lightning but works.
densenet.py 3.22 KiB