MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / VerifyBuiltinOptionsVector

Function VerifyBuiltinOptionsVector

tensorflow/lite/schema/schema_generated.h:12719–12729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12717}
12718
12719inline bool VerifyBuiltinOptionsVector(flatbuffers::Verifier &verifier, const flatbuffers::Vector<flatbuffers::Offset<void>> *values, const flatbuffers::Vector<uint8_t> *types) {
12720 if (!values || !types) return !values && !types;
12721 if (values->size() != types->size()) return false;
12722 for (flatbuffers::uoffset_t i = 0; i < values->size(); ++i) {
12723 if (!VerifyBuiltinOptions(
12724 verifier, values->Get(i), types->GetEnum<BuiltinOptions>(i))) {
12725 return false;
12726 }
12727 }
12728 return true;
12729}
12730
12731inline void *BuiltinOptionsUnion::UnPack(const void *obj, BuiltinOptions type, const flatbuffers::resolver_function_t *resolver) {
12732 switch (type) {

Callers

nothing calls this directly

Calls 3

VerifyBuiltinOptionsFunction · 0.85
sizeMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected