1/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. 2 3Licensed under the Apache License, Version 2.0 (the "License"); 4you may not use this file except in compliance with the License. 5You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9Unless required by applicable law or agreed to in writing, software 10distributed under the License is distributed on an "AS IS" BASIS, 11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12See the License for the specific language governing permissions and 13limitations under the License. 14==============================================================================*/ 15 16syntax = "proto2"; 17 18package tflite.evaluation; 19 20import "tensorflow/lite/tools/evaluation/proto/evaluation_stages.proto"; 21 22option cc_enable_arenas = true; 23option java_multiple_files = true; 24option java_package = "tflite.evaluation"; 25 26// Contains parameters that define how an EvaluationStage will be executed. 27// This would typically be validated only once during initialization, so should 28// not contain any variables that change with each run. 29// 30// Next ID: 3 31message EvaluationStageConfig { 32 optional string name = 1; 33 34 // Specification defining what this stage does, and any required parameters. 35 optional ProcessSpecification specification = 2; 36} 37 38// Metrics returned from EvaluationStage.LatestMetrics() need not have all 39// fields set. 40message EvaluationStageMetrics { 41 // Total number of times the EvaluationStage is run. 42 optional int32 num_runs = 1; 43 44 // Process-specific numbers such as latencies, accuracy, etc. 45 optional ProcessMetrics process_metrics = 2; 46} 47