Skip to content

Add tensorboard to torch engine #1704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

robin-p-schmitt
Copy link
Contributor

This adds tensorboard support to the torch engine. right now, it just uses the default directory name "runs" to dump the data to. also, it just dumps all scores from eval_info into the tensorbard. since we might want to discuss these two decisions, i marked this as a draft request.

# write losses/errors to tensorboard
for key, val in eval_info.items():
self._tensorboard_writer.add_scalar(
f"{dataset_name}/{key}", val, global_step=self.global_train_step
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

global_train_step always stays the same here for one specific epoch. Isn't that a problem?
Maybe you want to do it for the accumulated_losses_dict instead below?

@robin-p-schmitt robin-p-schmitt marked this pull request as ready for review April 2, 2025 13:26
@robin-p-schmitt robin-p-schmitt requested review from NeoLegends and a team as code owners April 2, 2025 13:26
@albertz
Copy link
Member

albertz commented Apr 3, 2025

Note: You can rebase to master now. That should fix the CI issues. (But despite that, see also my other comment.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants