26int main(
int argc,
char **argv)
28 std::ifstream ifs(argv[1], std::ios_base::binary);
29 std::vector<char> buf(std::istreambuf_iterator<char>{ifs}, std::istreambuf_iterator<char>{});
31 flatbuffers::Verifier verifier{
reinterpret_cast<uint8_t *
>(buf.data()), buf.size()};
33 if (!tflite::VerifyModelBuffer(verifier))
35 std::cout <<
"Fail" << std::endl;
39 std::cout <<
"Pass" << std::endl;