ATLAS Offline Software
Loading...
Searching...
No Matches
test_lwtnn_fastgraph.cxx
Go to the documentation of this file.
3
4#include "lwtnn/lightweight_network_config.hh"
5#include "lwtnn/parse_json.hh"
6
7#include <string>
8#include <vector>
9#include <fstream>
10
11struct Args
12{
13 std::string nn_file;
14};
15
16Args getArgs(int nargs, char* argv[]) {
17 Args args;
18 if (nargs != 1) return args;
19 args.nn_file = argv[1];
20 return args;
21}
22
23int main(int nargs, char* argv[]) {
24 Args args = getArgs(nargs, argv);
25 if (args.nn_file.size() == 0) return 1;
26 auto nn_file = std::ifstream(args.nn_file);
27 auto graph_config = lwt::parse_json_graph(nn_file);
28
29 lwt::atlas::FastGraph graph(graph_config, {}, "");
30
31 return 0;
32}
int main()
Definition hello.cxx:18
std::string nn_file
Args getArgs(int nargs, char *argv[])