Skip to content

Loss not logged for 16bit precision and manual optimization #6833

@timothybrooks

Description

@timothybrooks

When training a GAN and thus using manual optimization, I include these lines:

self.log("loss_d", loss_d, prog_bar=True)
self.log("loss_g", loss_g, prog_bar=True)

The logging works as intended, both for my logger (W&B) and to the command line progress bar so long as I use 32 bit precision. However, when I use 16 bit precision, no logging occurs to either. I have tried printing the losses, and they appear to be reasonable values and on the correct devices.

Metadata

Metadata

Assignees

Labels

3rd partyRelated to a 3rd-partybugSomething isn't workinghelp wantedOpen to be worked onloggingRelated to the `LoggerConnector` and `log()`

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions