Lightning-AI / Lightning-AI/pytorch-lightning

Add date and time for TensorBoardLogger

Open
#20,063 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature logger: tensorboard
Dominant language
Python
Stars
31.4k
Forks
3.8k
Avg merge
6d 7h
Merged PRs (30d)
6

Description

### Description & Motivation

I can set the name of TensorboardLogger with datetime in code
`name = os.path.join('runs',datetime.now().strftime("%Y%m%d%H%M%S"))`
But when call from CLI, TensorboardLogger can not use date and time as its name easily.

### Pitch

add an init_arg for TensorBoardLogger so that user can choose whether to log date and time.

### Alternatives

_No response_

### Additional context

_No response_

cc @borda @awaelchli

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the TensorBoardLogger initialization path and the CLI argument handling described in the issue. Determine how an init argument should control date-and-time naming, then verify that invoking the logger from the CLI can enable or disable that behavior and that the resulting run name is correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.