tensorboard_data.proto 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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.v1beta1;
  16. import "google/api/field_behavior.proto";
  17. import "google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto";
  18. import "google/protobuf/timestamp.proto";
  19. option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "TensorboardDataProto";
  23. option java_package = "com.google.cloud.aiplatform.v1beta1";
  24. option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1";
  25. option ruby_package = "Google::Cloud::AIPlatform::V1beta1";
  26. // All the data stored in a TensorboardTimeSeries.
  27. message TimeSeriesData {
  28. // Required. The ID of the TensorboardTimeSeries, which will become the final component
  29. // of the TensorboardTimeSeries' resource name
  30. string tensorboard_time_series_id = 1 [(google.api.field_behavior) = REQUIRED];
  31. // Required. Immutable. The value type of this time series. All the values in this time series data
  32. // must match this value type.
  33. TensorboardTimeSeries.ValueType value_type = 2 [
  34. (google.api.field_behavior) = REQUIRED,
  35. (google.api.field_behavior) = IMMUTABLE
  36. ];
  37. // Required. Data points in this time series.
  38. repeated TimeSeriesDataPoint values = 3 [(google.api.field_behavior) = REQUIRED];
  39. }
  40. // A TensorboardTimeSeries data point.
  41. message TimeSeriesDataPoint {
  42. // Value of this time series data point.
  43. oneof value {
  44. // A scalar value.
  45. Scalar scalar = 3;
  46. // A tensor value.
  47. TensorboardTensor tensor = 4;
  48. // A blob sequence value.
  49. TensorboardBlobSequence blobs = 5;
  50. }
  51. // Wall clock timestamp when this data point is generated by the end user.
  52. google.protobuf.Timestamp wall_time = 1;
  53. // Step index of this data point within the run.
  54. int64 step = 2;
  55. }
  56. // One point viewable on a scalar metric plot.
  57. message Scalar {
  58. // Value of the point at this step / timestamp.
  59. double value = 1;
  60. }
  61. // One point viewable on a tensor metric plot.
  62. message TensorboardTensor {
  63. // Required. Serialized form of
  64. // https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/tensor.proto
  65. bytes value = 1 [(google.api.field_behavior) = REQUIRED];
  66. // Optional. Version number of TensorProto used to serialize [value][google.cloud.aiplatform.v1beta1.TensorboardTensor.value].
  67. int32 version_number = 2 [(google.api.field_behavior) = OPTIONAL];
  68. }
  69. // One point viewable on a blob metric plot, but mostly just a wrapper message
  70. // to work around repeated fields can't be used directly within `oneof` fields.
  71. message TensorboardBlobSequence {
  72. // List of blobs contained within the sequence.
  73. repeated TensorboardBlob values = 1;
  74. }
  75. // One blob (e.g, image, graph) viewable on a blob metric plot.
  76. message TensorboardBlob {
  77. // Output only. A URI safe key uniquely identifying a blob. Can be used to locate the blob
  78. // stored in the Cloud Storage bucket of the consumer project.
  79. string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  80. // Optional. The bytes of the blob is not present unless it's returned by the
  81. // ReadTensorboardBlobData endpoint.
  82. bytes data = 2 [(google.api.field_behavior) = OPTIONAL];
  83. }