Machine-Learning-Collection
Machine-Learning-Collection copied to clipboard
warning: Embedding dir exists, did you set global_step for add_embedding()?
I was doing the pytorch tensor board tutorial. While running the pytorch_tensorboard_.py notebook file, I get this:
warning: Embedding dir exists, did you set global_step for add_embedding()?
Somebody else also faced this (might be in a different case). I don't understand the cause & effect of this, any help?
Thanks in advance!
This warning indicates that the embedding directory already exists.
To avoid it you can set the global_step parameter in the add_embedding method to ensure that each embedding is logged with a unique step.
For example:
writer.add_embedding(features,
metadata=class_labels,
label_img=labels,
global_step=0)