1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/lite/toco/types.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2flite_2ftoco_2ftypes_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2flite_2ftoco_2ftypes_2eproto |
6 | |
7 | #include <limits> |
8 | #include <string> |
9 | |
10 | #include <google/protobuf/port_def.inc> |
11 | #if PROTOBUF_VERSION < 3009000 |
12 | #error This file was generated by a newer version of protoc which is |
13 | #error incompatible with your Protocol Buffer headers. Please update |
14 | #error your headers. |
15 | #endif |
16 | #if 3009002 < PROTOBUF_MIN_PROTOC_VERSION |
17 | #error This file was generated by an older version of protoc which is |
18 | #error incompatible with your Protocol Buffer headers. Please |
19 | #error regenerate this file with a newer version of protoc. |
20 | #endif |
21 | |
22 | #include <google/protobuf/port_undef.inc> |
23 | #include <google/protobuf/io/coded_stream.h> |
24 | #include <google/protobuf/arena.h> |
25 | #include <google/protobuf/arenastring.h> |
26 | #include <google/protobuf/generated_message_table_driven.h> |
27 | #include <google/protobuf/generated_message_util.h> |
28 | #include <google/protobuf/inlined_string_field.h> |
29 | #include <google/protobuf/metadata.h> |
30 | #include <google/protobuf/generated_message_reflection.h> |
31 | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
32 | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
33 | #include <google/protobuf/generated_enum_reflection.h> |
34 | // @@protoc_insertion_point(includes) |
35 | #include <google/protobuf/port_def.inc> |
36 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2flite_2ftoco_2ftypes_2eproto |
37 | PROTOBUF_NAMESPACE_OPEN |
38 | namespace internal { |
39 | class AnyMetadata; |
40 | } // namespace internal |
41 | PROTOBUF_NAMESPACE_CLOSE |
42 | |
43 | // Internal implementation detail -- do not use these members. |
44 | struct TableStruct_tensorflow_2flite_2ftoco_2ftypes_2eproto { |
45 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
46 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
47 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
48 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
49 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] |
50 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
51 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
52 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
53 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
54 | }; |
55 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2flite_2ftoco_2ftypes_2eproto; |
56 | PROTOBUF_NAMESPACE_OPEN |
57 | PROTOBUF_NAMESPACE_CLOSE |
58 | namespace toco { |
59 | |
60 | enum IODataType : int { |
61 | IO_DATA_TYPE_UNKNOWN = 0, |
62 | FLOAT = 1, |
63 | QUANTIZED_UINT8 = 2, |
64 | INT32 = 3, |
65 | INT64 = 4, |
66 | STRING = 5, |
67 | QUANTIZED_INT16 = 6, |
68 | BOOL = 7, |
69 | COMPLEX64 = 8, |
70 | QUANTIZED_INT8 = 9, |
71 | FLOAT16 = 10, |
72 | FLOAT64 = 11, |
73 | COMPLEX128 = 12, |
74 | UINT64 = 13, |
75 | RESOURCE = 14, |
76 | VARIANT = 15, |
77 | UINT32 = 16, |
78 | UINT8 = 17, |
79 | INT8 = 18, |
80 | INT16 = 19, |
81 | UINT16 = 20 |
82 | }; |
83 | bool IODataType_IsValid(int value); |
84 | constexpr IODataType IODataType_MIN = IO_DATA_TYPE_UNKNOWN; |
85 | constexpr IODataType IODataType_MAX = UINT16; |
86 | constexpr int IODataType_ARRAYSIZE = IODataType_MAX + 1; |
87 | |
88 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* IODataType_descriptor(); |
89 | template<typename T> |
90 | inline const std::string& IODataType_Name(T enum_t_value) { |
91 | static_assert(::std::is_same<T, IODataType>::value || |
92 | ::std::is_integral<T>::value, |
93 | "Incorrect type passed to function IODataType_Name." ); |
94 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
95 | IODataType_descriptor(), enum_t_value); |
96 | } |
97 | inline bool IODataType_Parse( |
98 | const std::string& name, IODataType* value) { |
99 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<IODataType>( |
100 | IODataType_descriptor(), name, value); |
101 | } |
102 | // =================================================================== |
103 | |
104 | |
105 | // =================================================================== |
106 | |
107 | |
108 | // =================================================================== |
109 | |
110 | #ifdef __GNUC__ |
111 | #pragma GCC diagnostic push |
112 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
113 | #endif // __GNUC__ |
114 | #ifdef __GNUC__ |
115 | #pragma GCC diagnostic pop |
116 | #endif // __GNUC__ |
117 | |
118 | // @@protoc_insertion_point(namespace_scope) |
119 | |
120 | } // namespace toco |
121 | |
122 | PROTOBUF_NAMESPACE_OPEN |
123 | |
124 | template <> struct is_proto_enum< ::toco::IODataType> : ::std::true_type {}; |
125 | template <> |
126 | inline const EnumDescriptor* GetEnumDescriptor< ::toco::IODataType>() { |
127 | return ::toco::IODataType_descriptor(); |
128 | } |
129 | |
130 | PROTOBUF_NAMESPACE_CLOSE |
131 | |
132 | // @@protoc_insertion_point(global_scope) |
133 | |
134 | #include <google/protobuf/port_undef.inc> |
135 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2flite_2ftoco_2ftypes_2eproto |
136 | |