1// Copyright 2017 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// IODataType describes the numeric data types of input and output arrays 19// of a model. 20enum IODataType { 21 IO_DATA_TYPE_UNKNOWN = 0; 22 23 // Float32, not quantized 24 FLOAT = 1; 25 26 // Uint8, quantized 27 QUANTIZED_UINT8 = 2; 28 29 // Int32, not quantized 30 INT32 = 3; 31 32 // Int64, not quantized 33 INT64 = 4; 34 35 // String, not quantized 36 STRING = 5; 37 38 // Int16, quantized 39 QUANTIZED_INT16 = 6; 40 41 // Boolean 42 BOOL = 7; 43 44 // Complex64, not quantized 45 COMPLEX64 = 8; 46 47 // Int8, quantized based on QuantizationParameters in schema. 48 INT8 = 9; 49} 50