tensorboard_time_series.proto 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.aiplatform.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/timestamp.proto";
  19. option csharp_namespace = "Google.Cloud.AIPlatform.V1";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "TensorboardTimeSeriesProto";
  23. option java_package = "com.google.cloud.aiplatform.v1";
  24. option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
  25. option ruby_package = "Google::Cloud::AIPlatform::V1";
  26. // TensorboardTimeSeries maps to times series produced in training runs
  27. message TensorboardTimeSeries {
  28. option (google.api.resource) = {
  29. type: "aiplatform.googleapis.com/TensorboardTimeSeries"
  30. pattern: "projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}"
  31. };
  32. // Describes metadata for a TensorboardTimeSeries.
  33. message Metadata {
  34. // Output only. Max step index of all data points within a TensorboardTimeSeries.
  35. int64 max_step = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  36. // Output only. Max wall clock timestamp of all data points within a
  37. // TensorboardTimeSeries.
  38. google.protobuf.Timestamp max_wall_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  39. // Output only. The largest blob sequence length (number of blobs) of all data points in
  40. // this time series, if its ValueType is BLOB_SEQUENCE.
  41. int64 max_blob_sequence_length = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  42. }
  43. // An enum representing the value type of a TensorboardTimeSeries.
  44. enum ValueType {
  45. // The value type is unspecified.
  46. VALUE_TYPE_UNSPECIFIED = 0;
  47. // Used for TensorboardTimeSeries that is a list of scalars.
  48. // E.g. accuracy of a model over epochs/time.
  49. SCALAR = 1;
  50. // Used for TensorboardTimeSeries that is a list of tensors.
  51. // E.g. histograms of weights of layer in a model over epoch/time.
  52. TENSOR = 2;
  53. // Used for TensorboardTimeSeries that is a list of blob sequences.
  54. // E.g. set of sample images with labels over epochs/time.
  55. BLOB_SEQUENCE = 3;
  56. }
  57. // Output only. Name of the TensorboardTimeSeries.
  58. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  59. // Required. User provided name of this TensorboardTimeSeries.
  60. // This value should be unique among all TensorboardTimeSeries resources
  61. // belonging to the same TensorboardRun resource (parent resource).
  62. string display_name = 2 [(google.api.field_behavior) = REQUIRED];
  63. // Description of this TensorboardTimeSeries.
  64. string description = 3;
  65. // Required. Immutable. Type of TensorboardTimeSeries value.
  66. ValueType value_type = 4 [
  67. (google.api.field_behavior) = REQUIRED,
  68. (google.api.field_behavior) = IMMUTABLE
  69. ];
  70. // Output only. Timestamp when this TensorboardTimeSeries was created.
  71. google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  72. // Output only. Timestamp when this TensorboardTimeSeries was last updated.
  73. google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  74. // Used to perform a consistent read-modify-write updates. If not set, a blind
  75. // "overwrite" update happens.
  76. string etag = 7;
  77. // Immutable. Name of the plugin this time series pertain to. Such as Scalar, Tensor,
  78. // Blob
  79. string plugin_name = 8 [(google.api.field_behavior) = IMMUTABLE];
  80. // Data of the current plugin, with the size limited to 65KB.
  81. bytes plugin_data = 9;
  82. // Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries.
  83. Metadata metadata = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  84. }