You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

lineage.proto 3.4 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. // Copyright 2020 Huawei Technologies Co., Ltd.
  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 = "proto2";
  15. package mindspore.irpb;
  16. option cc_enable_arenas = true;
  17. // Event Protocol buffer, Top define
  18. message LineageEvent {
  19. // Timestamp
  20. required double wall_time = 1;
  21. // The step of train.
  22. optional int64 step = 2;
  23. oneof what {
  24. // An event file was started, with the specified version.
  25. // Now version is "MindSpore.Event:1"
  26. string version = 3;
  27. // Train lineage
  28. TrainLineage train_lineage = 6;
  29. // Evaluation lineage
  30. EvaluationLineage evaluation_lineage = 7;
  31. // Dataset graph
  32. DatasetGraph dataset_graph = 9;
  33. // User defined info
  34. UserDefinedInfo user_defined_info = 10;
  35. }
  36. }
  37. // User defined info
  38. message UserDefinedInfo{
  39. // repeated user defined info
  40. repeated UserDefinedInfo user_info = 1;
  41. // key/value which contains both scalar and dict
  42. map<string, UserDefinedInfo> map_dict = 2;
  43. map<string, int32> map_int32 = 3;
  44. map<string, string> map_str = 4;
  45. map<string, double> map_double = 5;
  46. }
  47. // TrainLineage records infos of a train.
  48. message TrainLineage{
  49. message HyperParameters{
  50. optional string optimizer = 1;
  51. optional float learning_rate = 2;
  52. optional string loss_function = 3;
  53. optional int32 epoch = 4;
  54. optional string parallel_mode = 5;
  55. optional int32 device_num = 6;
  56. optional int32 batch_size = 8;
  57. }
  58. message TrainDataset{
  59. optional string train_dataset_path = 1;
  60. optional int32 train_dataset_size = 2;
  61. }
  62. message Algorithm{
  63. optional string network = 1;
  64. optional float loss = 2;
  65. }
  66. message Model{
  67. optional string path = 3;
  68. optional int64 size = 4;
  69. }
  70. optional HyperParameters hyper_parameters = 1;
  71. optional TrainDataset train_dataset = 2;
  72. optional Algorithm algorithm = 3;
  73. optional Model model = 4;
  74. }
  75. //EvalLineage records infos of evaluation.
  76. message EvaluationLineage{
  77. message ValidDataset{
  78. optional string valid_dataset_path = 1;
  79. optional int32 valid_dataset_size = 2;
  80. }
  81. optional string metric = 2;
  82. optional ValidDataset valid_dataset = 3;
  83. }
  84. // DatasetGraph
  85. message DatasetGraph {
  86. repeated DatasetGraph children = 1;
  87. optional OperationParameter parameter = 2;
  88. repeated Operation operations = 3;
  89. optional Operation sampler = 4;
  90. }
  91. message Operation {
  92. optional OperationParameter operationParam = 1;
  93. repeated int32 size = 2;
  94. repeated float weights = 3;
  95. }
  96. message OperationParameter{
  97. map<string, string> mapStr = 1;
  98. map<string, StrList> mapStrList = 2;
  99. map<string, bool> mapBool = 3;
  100. map<string, int32> mapInt = 4;
  101. map<string, double> mapDouble = 5;
  102. }
  103. message StrList {
  104. repeated string strValue = 1;
  105. }