-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Proto changes to support experiment name & description. #3227
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
Closed
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
70d7260
Proto changes to support experiment name & description.
bileschi 8ddc062
ci: add proto lint test with `clang-format` (#3228)
wchargin 38a326b
cleanup: fix import statement (#3225)
stephanwlee 779c5f2
Replying to reviewer suggestions
bileschi f833b39
Convert BaseResponse to wrappers.BaseResponse (#3230)
stephanwlee 395b7bb
Remove unused import in fonts.bzl (#3231)
stephanwlee e00c838
Proto changes to support experiment name & description.
bileschi 75d513a
Replying to reviewer suggestions
bileschi 9a23cd7
Reviewer comments. Sorry last PR was so shabby, should not have sent.
bileschi fa9a552
merge conflicts from origin pull
bileschi cd49988
merge
bileschi 190d6e6
clang-format
bileschi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| BasedOnStyle: google |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package tensorboard.service; | ||
|
|
||
| import "google/protobuf/timestamp.proto"; | ||
|
|
||
| // Metadata about an experiment. | ||
| message Experiment { | ||
| // Permanent ID of this experiment; e.g.: "AdYd1TgeTlaLWXx6I8JUbA". | ||
| string experiment_id = 1; | ||
| // The time that the experiment was created. | ||
| google.protobuf.Timestamp create_time = 2; | ||
| // The time that the experiment was last modified: i.e., the most recent time | ||
| // that scalars were added to the experiment. | ||
| google.protobuf.Timestamp update_time = 3; | ||
| // The number of scalars in this experiment, across all time series. | ||
| int64 num_scalars = 4; | ||
| // The number of distinct run names in this experiment. | ||
| int64 num_runs = 5; | ||
| // The number of distinct tag names in this experiment. A tag name that | ||
| // appears in multiple runs will be counted only once. | ||
| int64 num_tags = 6; | ||
| // User provided name of the experiment. | ||
| string name = 7; | ||
| // User provided description of the experiment, in markdown source format. | ||
| string description = 8; | ||
| } | ||
|
|
||
| // Field mask for `Experiment`. The `experiment_id` field is always implicitly | ||
| // considered to be requested. Other fields of `Experiment` will be populated | ||
| // if their corresponding bits in the `ExperimentMask` are set. The server may | ||
| // choose to populate fields that are not explicitly requested. | ||
| message ExperimentMask { | ||
| reserved 1; | ||
| reserved "experiment_id"; | ||
| bool create_time = 2; | ||
| bool update_time = 3; | ||
| bool num_scalars = 4; | ||
| bool num_runs = 5; | ||
| bool num_tags = 6; | ||
| bool name = 7; | ||
| bool description = 8; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -409,6 +409,8 @@ def execute(self, server_info, channel): | |
| url = server_info_lib.experiment_url(server_info, experiment_id) | ||
| print(url) | ||
| data = [ | ||
| ("Name", experiment.name), | ||
| ("Description", experiment.description), | ||
bileschi marked this conversation as resolved.
Show resolved
Hide resolved
Comment on lines
+412
to
+413
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you do make this change, please change the |
||
| ("Id", experiment.experiment_id), | ||
| ("Created", util.format_time(experiment.create_time)), | ||
| ("Updated", util.format_time(experiment.update_time)), | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.