1/* Copyright 2021 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 16// Protocol messages for describing autotuning maps. This enables us to easily 17// serialize/deserialize existing autotune maps in the TF runtime. 18// 19// For Google-internal use only. 20syntax = "proto3"; 21 22package tensorflow; 23 24import "tensorflow/compiler/xla/stream_executor/dnn.proto"; 25import "tensorflow/core/util/autotune_maps/conv_parameters.proto"; 26 27message ConvMapProto { 28 message Entry { 29 tensorflow.ConvParametersProto key = 1; 30 stream_executor.dnn.AlgorithmConfigProto value = 2; 31 } 32 33 repeated Entry kv_pairs = 1; 34} 35 36// TODO(b/189530096): Support autotune maps for more ops. 37message AutotuneMapsProto { 38 ConvMapProto conv_map = 2; 39 ConvMapProto fused_conv_map = 3; 40} 41