assert(status == kTfLiteOk);
};
- // NOTE Block is introduced to minimize code diff
- // TODO Reduce nesting level
- {
- std::cout << "output tensor indices = [";
- for( const auto& o : interpreter->outputs() ) {
- std::cout << o << "(";
+ std::cout << "output tensor indices = [";
+ for( const auto& o : interpreter->outputs() ) {
+ std::cout << o << "(";
- print_max_idx(interpreter->tensor(o)->data.f, interpreter->tensor(o)->bytes/sizeof(float));
-
- std::cout << "),";
- }
- std::cout << "]" << std::endl;
+ print_max_idx(interpreter->tensor(o)->data.f, interpreter->tensor(o)->bytes/sizeof(float));
+ std::cout << "),";
}
+ std::cout << "]" << std::endl;
std::cout << "Prepare takes " << t_prepare.count() << " seconds" << std::endl;
std::cout << "Invoke takes " << t_invoke.count() << " seconds" << std::endl;