ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Driver.cpp
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include "InitCommand.h"
18#include "EncodeCommand.h"
19#include "DecodeCommand.h"
20#include "MergeCommand.h"
21
22#include <cli/App.h>
23
24#include <memory>
25#include <map>
26#include <string>
27
28using std::make_unique;
29
30int main(int argc, char **argv)
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}
int main(void)
Definition App.h:30