Check for the case where the Operators vector in a tflite model is missing (#245)
* Check for the case where the Operators vector in a tflite model is missing Some of our tools remove the vector if it's empty (i.e. the subgraph doesn't contain ops). The check is added until the tools are fixed. BUG=http://b/192589496 * Move NumSubgraphOperators to flatbuffer_utils.h/cc * Fix the CI errors. * Remove `#define FLATBUFFERS_LOCALE_INDEPENDENT 0` We will handle that via the Makefile instead. * Add -DFLATBUFFERS_LOCALE_INDEPENDENT=0 to makefile. * remove references to flatbuffer from kernel_utils.cc/h * Fix the build. * run buildifier Co-authored-by: NAdvait Jain <advaitjain@google.com> Co-authored-by: NAdvait Jain <advaitjain@users.noreply.github.com>
Showing
想要评论请 注册 或 登录