Skip to content

[Question] Using tensorboard with custom logger #2104

@JDRanpariya

Description

@JDRanpariya

❓ Question

How can we make it work through custom logger? I am using custom logger for custom callback and do want to have my logs show up in wandb using tensorboard.

I saw it being mentioned in #1997 but that doesn't help much.

class CustomLogger(Logger):
    def __init__(self, folder: Optional[str], output_formats: list[KVWriter]):
        super(CustomLogger, self).__init__(folder, output_formats)

    def dump(self, step: int = 0) -> None:
        """
        Write all of the diagnostics from the current iteration without clearing the stored values.
        """
        if self.level == DISABLED:
            return
        for _format in self.output_formats:
            if isinstance(_format, KVWriter):
                _format.write(self.name_to_value, self.name_to_excluded, step)

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions