# How does wandb.tensorboard.patch works?

**URL:** <https://community.wandb.ai/t/how-does-wandb-tensorboard-patch-works/1386>\
**Category:** W&B Help\
**Tags:** dashboard\
**Created:** [November 25, 2021, 1:26pm UTC](https://community.wandb.ai/t/how-does-wandb-tensorboard-patch-works/1386 "2021-11-25T13:26:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![emanuele\_francazi](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@emanuele\_francazi](https://community.wandb.ai/u/emanuele_francazi)\
**Post date:** [November 25, 2021, 1:26pm UTC](https://community.wandb.ai/t/how-does-wandb-tensorboard-patch-works/1386/1 "2021-11-25T13:26:44Z")

</div>

Hi everyone,  
I’m trying to move from `tensorboard` to `wandb` that seems more flexible and has some useful additional feature to customize plots.

In my code I defined two` Tensorboard` `SummaryWriter`; I’d like to import the plot associated to one of them in `wandb`.

In other words I want to include in `wandb` only a part of the `tensorboard` logs of my code.  
Is it possible to do it?  
If, for example, I have the 2 summaries stored in 2 different folders a and a/b

```auto
Sum1 = SummaryWriter('a')
Sum2 = SummaryWriter('a/b')

```

and I’m only interested in import Sum2 in` wandb` .

I thought that  
`wandb.tensorboard.patch(root_logdir='a/b', pytorch=True)`  
was the way but it doesn’t seem the case.  
In fact I get this message:

`e[34me[1mwandbe[0m: e[33mWARNINGe[0m Found logdirectory outside of given root_logdir, dropping given root_logdir for eventfile in a`

I want that paths outside root\_logdir to be ignored.  
Apart from this page I did’t found a clear documentation about wandb.tensorboard.patch.  
Any idea about how to proceed?

---

<div class="post-metadata">

**Author:** ![lesliewandb](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/lesliewandb/32/369_2.png) [@lesliewandb](https://community.wandb.ai/u/lesliewandb)\
**Post date:** [November 30, 2021, 4:03pm UTC](https://community.wandb.ai/t/how-does-wandb-tensorboard-patch-works/1386/2 "2021-11-30T16:03:43Z")

</div>

Have you been able to look at this doc ([https://docs.wandb.ai/guides/integrations/tensorboard#how-do-i-configure-tensorboard-when-im-using-it-with-wandb](https://docs.wandb.ai/guides/integrations/tensorboard#how-do-i-configure-tensorboard-when-im-using-it-with-wandb))

---

<div class="post-metadata">

**Author:** ![lesliewandb](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/lesliewandb/32/369_2.png) [@lesliewandb](https://community.wandb.ai/u/lesliewandb)\
**Post date:** [December 6, 2021, 5:33pm UTC](https://community.wandb.ai/t/how-does-wandb-tensorboard-patch-works/1386/3 "2021-12-06T17:33:41Z")

</div>

Hi Emanuele, was the document I provided able to help you, or are you still running into this issue?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [January 24, 2022, 1:27pm UTC](https://community.wandb.ai/t/how-does-wandb-tensorboard-patch-works/1386/4 "2022-01-24T13:27:02Z")

</div>

Closed on January 24, 2022, 1:27pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
