Skip to content
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

tensorboard line stops at some step #6933

Open
Anarion-zuo opened this issue Oct 27, 2024 · 0 comments
Open

tensorboard line stops at some step #6933

Anarion-zuo opened this issue Oct 27, 2024 · 0 comments

Comments

@Anarion-zuo
Copy link

As this stackoverflow question poses: https://stackoverflow.com/questions/79124499/tensorboard-line-stops-at-some-step

image

The blue curve stuck at step 152 while other curves showed up. Any possible cause for this to happen?

I am using pytorch with tensor board. The code looks like this:

        tb_writer.add_scalars(
            main_tag="Train/{}CacheRates".format(name),
            tag_scalar_dict={
                "HR": hr,
                "#AdmitsRate": (
                    (
                        admit_action.sum(dim=1).float()+1
                    ) / (
                        mask.sum(dim=1).float()+1
                    )
                ).mean(),
                "AskedToPrefetchRate": (
                    (
                        is_prefech.sum(dim=1)+1
                    ).float() / (
                        num_items.float()+1
                    )
                ).mean(),
                "PrefetchGiveupRate": (
                    (
                        (is_prefech * (prefetch_action == 0).long()).sum(dim=1)+1
                    ).float() / (
                        is_prefech.sum(dim=1)+1
                    ).float()
                ).mean()
            },
            global_step=run_step,
        )
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

No branches or pull requests

1 participant