| 12332 | } |
| 12333 | |
| 12334 | inline bool VerifyBuiltinOptions(flatbuffers::Verifier &verifier, const void *obj, BuiltinOptions type) { |
| 12335 | switch (type) { |
| 12336 | case BuiltinOptions_NONE: { |
| 12337 | return true; |
| 12338 | } |
| 12339 | case BuiltinOptions_Conv2DOptions: { |
| 12340 | auto ptr = reinterpret_cast<const Conv2DOptions *>(obj); |
| 12341 | return verifier.VerifyTable(ptr); |
| 12342 | } |
| 12343 | case BuiltinOptions_DepthwiseConv2DOptions: { |
| 12344 | auto ptr = reinterpret_cast<const DepthwiseConv2DOptions *>(obj); |
| 12345 | return verifier.VerifyTable(ptr); |
| 12346 | } |
| 12347 | case BuiltinOptions_ConcatEmbeddingsOptions: { |
| 12348 | auto ptr = reinterpret_cast<const ConcatEmbeddingsOptions *>(obj); |
| 12349 | return verifier.VerifyTable(ptr); |
| 12350 | } |
| 12351 | case BuiltinOptions_LSHProjectionOptions: { |
| 12352 | auto ptr = reinterpret_cast<const LSHProjectionOptions *>(obj); |
| 12353 | return verifier.VerifyTable(ptr); |
| 12354 | } |
| 12355 | case BuiltinOptions_Pool2DOptions: { |
| 12356 | auto ptr = reinterpret_cast<const Pool2DOptions *>(obj); |
| 12357 | return verifier.VerifyTable(ptr); |
| 12358 | } |
| 12359 | case BuiltinOptions_SVDFOptions: { |
| 12360 | auto ptr = reinterpret_cast<const SVDFOptions *>(obj); |
| 12361 | return verifier.VerifyTable(ptr); |
| 12362 | } |
| 12363 | case BuiltinOptions_RNNOptions: { |
| 12364 | auto ptr = reinterpret_cast<const RNNOptions *>(obj); |
| 12365 | return verifier.VerifyTable(ptr); |
| 12366 | } |
| 12367 | case BuiltinOptions_FullyConnectedOptions: { |
| 12368 | auto ptr = reinterpret_cast<const FullyConnectedOptions *>(obj); |
| 12369 | return verifier.VerifyTable(ptr); |
| 12370 | } |
| 12371 | case BuiltinOptions_SoftmaxOptions: { |
| 12372 | auto ptr = reinterpret_cast<const SoftmaxOptions *>(obj); |
| 12373 | return verifier.VerifyTable(ptr); |
| 12374 | } |
| 12375 | case BuiltinOptions_ConcatenationOptions: { |
| 12376 | auto ptr = reinterpret_cast<const ConcatenationOptions *>(obj); |
| 12377 | return verifier.VerifyTable(ptr); |
| 12378 | } |
| 12379 | case BuiltinOptions_AddOptions: { |
| 12380 | auto ptr = reinterpret_cast<const AddOptions *>(obj); |
| 12381 | return verifier.VerifyTable(ptr); |
| 12382 | } |
| 12383 | case BuiltinOptions_L2NormOptions: { |
| 12384 | auto ptr = reinterpret_cast<const L2NormOptions *>(obj); |
| 12385 | return verifier.VerifyTable(ptr); |
| 12386 | } |
| 12387 | case BuiltinOptions_LocalResponseNormalizationOptions: { |
| 12388 | auto ptr = reinterpret_cast<const LocalResponseNormalizationOptions *>(obj); |
| 12389 | return verifier.VerifyTable(ptr); |
| 12390 | } |
| 12391 | case BuiltinOptions_LSTMOptions: { |
no outgoing calls
no test coverage detected