• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  // Half precision float, not quantized.
51  FLOAT16 = 10;
52
53  // Double precision float, not quantized.
54  FLOAT64 = 11;
55
56  // Complex128, not quantized
57  COMPLEX128 = 12;
58
59  // Uint64, not quantized
60  UINT64 = 13;
61
62  // Resource type
63  RESOURCE = 14;
64
65  // Variant type
66  VARIANT = 15;
67
68  // Uint32
69  UINT32 = 16;
70}
71