ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Driver.cpp File Reference
#include "InitCommand.h"
#include "EncodeCommand.h"
#include "DecodeCommand.h"
#include "MergeCommand.h"
#include <cli/App.h>
#include <memory>
#include <map>
#include <string>

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 30 of file Driver.cpp.

31{
32 cli::App app{argv[0]};
33
34 // all receive data from stdin
35 app.insert("init", make_unique<InitCommand>());
36 app.insert("encode", make_unique<EncodeCommand>());
37 app.insert("decode", make_unique<DecodeCommand>());
38 // takes 2 args: prototxt model and caffemodel weights in that order
39 app.insert("merge", make_unique<MergeCommand>());
40
41 return app.run(argc - 1, argv + 1);
42}
Definition App.h:30