Skip to content

Commit

Permalink
modify tags (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenYuhan authored Aug 12, 2020
1 parent 755518d commit 4049f98
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions visualdl/server/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,17 @@ def get_logs(log_reader, component):
tags[run] = [tag]
fake_tags = {}
for key, value in tags.items():

if key in log_reader.tags2name:
fake_tags[log_reader.tags2name[key]] = value
else:
fake_tags[key] = value

return fake_tags
run2tag = {'runs': [], 'tags': []}
for run, tags in fake_tags.items():
run2tag['runs'].append(run)
run2tag['tags'].append(tags)

return run2tag


def get_scalar_tags(log_reader):
Expand Down

0 comments on commit 4049f98

Please sign in to comment.