Skip to content

Allow user to use dataloader_idx in log name in LightningModule.logΒ #20485

@lokesh-vr-17773

Description

@lokesh-vr-17773

Description & Motivation

Allow the user to include dataloader information in the log name when add_datalaoder_idx is set to False.

Pitch

Since LightningModule.log includes the add_dataloader_idx flag for logging, it is beneficial to allow users to include dataloader information in the log name when add_dataloader_idx is set to False. This aligns with the intended purpose of the add_dataloader_idx flag.

Proposed change:

if add_dataloader_idx and "/dataloader_idx_" in name:
  raise MisconfigurationException()

Alternatives

No response

Additional context

No response

cc @Borda

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIs an improvement or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions