ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Entry.cpp File Reference
#include "Frontend.h"
#include "RawModelLoader.h"
#include <cmdline/View.h>
#include <memory>
#include <fstream>
#include <cassert>

Go to the source code of this file.

Functions

std::unique_ptr< enco::Frontendmake_frontend (const cmdline::View &cmdline)
 

Function Documentation

◆ make_frontend()

std::unique_ptr< enco::Frontend > make_frontend ( const cmdline::View cmdline)

Definition at line 28 of file Entry.cpp.

29{
30 assert(cmdline.size() == 1); // tflite file name
31
32 auto model = load_from(cmdline.at(0));
33
34 return make_unique<Frontend>(std::move(model));
35}
std::unique_ptr< RawModel > load_from(const std::string &path)
Load TensorFlow Lite model (as a RawModel) from a given path.
Definition View.h:23

References load_from().