Skip to content
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

TensorBoard.dev : Uploader delete functionality supports more than one experiment_id at a time. #5471

Merged
merged 6 commits into from
Dec 21, 2021

Conversation

bileschi
Copy link
Collaborator

Motivation for features / changes

#4765

Technical description of changes

Modifies flag to support a comma-separated list of experiment ids (while retaining functionality of just one id)

Screenshots of UI changes

Expected use case:

$ ./bazel-bin/tensorboard/tensorboard dev delete --experiment_id=S0kpfaQeTvaSjCA2nTMQFw,K8vwol4qSoi8UqViDj7q0Q
Deleted experiment S0kpfaQeTvaSjCA2nTMQFw.
Deleted experiment K8vwol4qSoi8UqViDj7q0Q.

No auth:

$ ./bazel-bin/tensorboard/tensorboard dev delete --experiment_id=S0kpfaQeTvaSjCA2nTMQFw,K8vwol4qSoi8UqViDj7q0Q

***** TensorBoard Uploader *****

This will delete the 2 experiments on
https://tensorboard.dev with the following experiment ID:

['S0kpfaQeTvaSjCA2nTMQFw', 'K8vwol4qSoi8UqViDj7q0Q']

You have chosen to delete an experiment. All experiments uploaded
to TensorBoard.dev are publicly visible. Do not upload sensitive
data.

Your use of this service is subject to Google's Terms of Service
<https://policies.google.com/terms> and Privacy Policy
<https://policies.google.com/privacy>, and TensorBoard.dev's Terms of Service
<https://tensorboard.dev/policy/terms/>.

This notice will not be shown again while you are logged into the uploader.
To log out, run `tensorboard dev auth revoke`.

Continue? (yes/NO) no

At least one experiment does not exist

$ ./bazel-bin/tensorboard/tensorboard dev delete --experiment_id=S0kpfaQeTvaSjCA2nTMQFw,K8vwol4qSoi8UqViDj7q0Q
No such experiment S0kpfaQeTvaSjCA2nTMQFw. Either it never existed or it has already been deleted.

Detailed steps to verify changes work correctly (as executed by you)

  • Upload new experiment(s) to tb.dev and then try deleting it, from command line.
  • Delete an existing experiment
  • Delete in a no-auth state
  • Delete multiple experimetns
  • Delete multiple experiments where one is invalid

Alternate designs / implementations considered

Considered changing the flag name to experiment_id_list or adding a second flag name. This seemed strictly worse than extending the behavior of the existing flag.

@bileschi
Copy link
Collaborator Author

  • Internal backend defines a limit of 5 deletions per minute. May want to introduce some padding in the uploader tool to prevent hitting that limit.

  • Current implementation stops at first failure - may want to continue to other eids?

tensorboard/uploader/uploader_subcommand.py Outdated Show resolved Hide resolved
tensorboard/uploader/uploader_subcommand.py Outdated Show resolved Hide resolved
tensorboard/uploader/uploader_subcommand.py Outdated Show resolved Hide resolved
tensorboard/uploader/uploader_subcommand.py Outdated Show resolved Hide resolved
tensorboard/uploader/flags_parser.py Outdated Show resolved Hide resolved
@bileschi bileschi changed the title multi delete TensorBoard.dev : Uploader delete functionality supports more than one experiment_id at a time. Dec 21, 2021
@bileschi bileschi merged commit 1c275c4 into tensorflow:master Dec 21, 2021
yatbear pushed a commit to yatbear/tensorboard that referenced this pull request Mar 27, 2023
dna2github pushed a commit to dna2fork/tensorboard that referenced this pull request May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants