Skip to content

Commit

Permalink
do not misconstrue Optimizer slot values as embeddings (#3679)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfiller authored Jun 1, 2020
1 parent 12f6234 commit 4c50549
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tensorboard/plugins/projector/projector_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ def _augment_configs_with_checkpoint_info(self):
for tensor_name, tensor_shape in var_map.items():
if len(tensor_shape) != 2:
continue
# Optimizer slot values are the same shape as embeddings
# but are not embeddings.
if ".OPTIMIZER_SLOT" in tensor_name:
continue
embedding = self._get_embedding(tensor_name, config)
if not embedding:
embedding = config.embeddings.add()
Expand Down

0 comments on commit 4c50549

Please sign in to comment.