xref: /aosp_15_r20/external/tensorflow/tensorflow/lite/toco/logging/toco_conversion_log.proto (revision b6fb3261f9314811a0f4371741dbb8839866f948)
1// Copyright 2019 The TensorFlow Authors. All Rights Reserved.
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.
14syntax = "proto2";
15
16package toco;
17
18// TocoConversionLog contains the analytics to be gathered when user converts
19// a model to TF Lite using TOCO.
20// Next ID to USE: 14.
21message TocoConversionLog {
22  // Total ops listed by name.
23  repeated string op_list = 1;
24  // Counts of built-in ops.
25  // Key is op name and value is the count.
26  map<string, int32> built_in_ops = 2;
27  // Counts of custom ops.
28  map<string, int32> custom_ops = 3;
29  // Counts of select ops.
30  map<string, int32> select_ops = 4;
31  // The signature of operators. Including ops input/output types and shapes,
32  // op name and version.
33  repeated string op_signatures = 5;
34  // Input tensor types.
35  repeated string input_tensor_types = 6;
36  // Output tensor types.
37  repeated string output_tensor_types = 7;
38  // Log generation time in micro-seconds.
39  optional int64 log_generation_ts = 8;
40  // Total number of ops in the model.
41  optional int32 model_size = 9;
42  // Tensorflow Lite runtime version.
43  optional string tf_lite_version = 10;
44  // Operating System info.
45  optional string os_version = 11;
46  // Model hash string.
47  optional string model_hash = 12;
48  // Error messages emitted by TOCO during conversion.
49  optional string toco_err_logs = 13;
50}
51