-
Notifications
You must be signed in to change notification settings - Fork 1.7k
uploader: export experiment metadata #3308
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
Conversation
Summary: We now emit an experiments scalar data to `experiment_123/scalars.json` rather than `scalars_123.json`. This generalizes more cleanly to writing multiple files under an experiment’s directory. Test Plan: Unit tests updated. One previous test case can no longer be hit and has thus been removed. wchargin-branch: uploader-export-subdirs wchargin-source: baa128470c061d7d2c0153f6491a1cdf8dd416c5
Summary: When running `tensorboard dev export`, experiment names and descriptions (set with the `update-metadata` subcommand or the `--name` and `--description` flags to `upload`) as well as experiment creation and modification times are now emitted to a new `metadata.json` file in the experiment directory. Test Plan: Unit tests included. Also end-to-end tested against a live server, exporting some experiments with name/description and some without. wchargin-branch: uploader-export-metadata wchargin-source: 7ea3720bd9e84ab9cc006532b53d80393130dba4
wchargin-branch: uploader-export-subdirs wchargin-source: f5009e29cf96dd119b769ad553c5666438f4df99
wchargin-branch: uploader-export-metadata wchargin-source: be420ce7930146aec02da3db4766137d035e824c
bileschi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIce timestamps!
tensorboard/uploader/exporter.py
Outdated
| experiment.update_time | ||
| ), | ||
| } | ||
| elif isinstance(experiment, str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there actually anymore of these old servers that stream experimen_id instead of experiment proto?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question—no, there shouldn’t be. I was considering what to do about
this and thought that it was easier and a bit more conservative to keep
the code as is (this is moved out of _request_experiment_ids) than to
change list_experiments below and drop the old code path. But you’re
right that this has been deployed for a while, so it looks unlikely that
we’ll need to roll the server back. I can go ahead and make that change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done as a pre-change in #3310, which indeed simplifies this diff by a
fair amount.
Summary: The `StreamExperiments` RPC response used to send only `experiment_ids`, but now sends `experiments` with additional metadata. This server-side change has been live since late November 2019, so we’re confident that we won’t need to roll it back. Thus, we can drop compatibility for the old code path in new uploader clients. Test Plan: Unit tests updated; verified that the `list` and `export` subcommands still work. wchargin-branch: uploader-require-experiment-metadata wchargin-source: ff0abea38230373d281391f5de90eea4a1f4c01b
wchargin-branch: uploader-export-metadata wchargin-source: 40a50bafa7c90072b0c179e8ddc5d3980394943f # Conflicts: # tensorboard/uploader/exporter.py # tensorboard/uploader/exporter_test.py
wchargin-branch: uploader-export-metadata wchargin-source: 40a50bafa7c90072b0c179e8ddc5d3980394943f
wchargin-branch: uploader-require-experiment-metadata wchargin-source: b53f6cf6c7b49a4ebb34dd3314867bfbca38b4d9
wchargin-branch: uploader-export-metadata wchargin-source: e365339e461182df80bc3ca35c9a3af9c941abe2
wchargin-branch: uploader-export-metadata wchargin-source: 3817d7485290fcd77cc4e2baaacc23676b3cb823 # Conflicts: # tensorboard/uploader/exporter.py # tensorboard/uploader/exporter_test.py
wchargin-branch: uploader-export-metadata wchargin-source: 3817d7485290fcd77cc4e2baaacc23676b3cb823
Summary: When running `tensorboard dev export`, experiment names and descriptions (set with the `update-metadata` subcommand or the `--name` and `--description` flags to `upload`) as well as experiment creation and modification times are now emitted to a new `metadata.json` file in the experiment directory. Test Plan: Unit tests included. Also end-to-end tested against a live server, exporting some experiments with name/description and some without. wchargin-branch: uploader-export-metadata
Summary: When running `tensorboard dev export`, experiment names and descriptions (set with the `update-metadata` subcommand or the `--name` and `--description` flags to `upload`) as well as experiment creation and modification times are now emitted to a new `metadata.json` file in the experiment directory. Test Plan: Unit tests included. Also end-to-end tested against a live server, exporting some experiments with name/description and some without. wchargin-branch: uploader-export-metadata
Summary:
When running
tensorboard dev export, experiment names and descriptions(set with the
update-metadatasubcommand or the--nameand--descriptionflags toupload) as well as experiment creation andmodification times are now emitted to a new
metadata.jsonfile in theexperiment directory.
Test Plan:
Unit tests included. Also end-to-end tested against a live server,
exporting some experiments with name/description and some without.
wchargin-branch: uploader-export-metadata