ATLAS Offline Software
Loading...
Searching...
No Matches
test_lwtnn_fastgraph.cxx File Reference
#include "LwtnnUtils/FastGraph.h"
#include "LwtnnUtils/InputOrder.h"
#include "lwtnn/lightweight_network_config.hh"
#include "lwtnn/parse_json.hh"
#include <string>
#include <vector>
#include <fstream>
Include dependency graph for test_lwtnn_fastgraph.cxx:

Go to the source code of this file.

Classes

struct  Args

Functions

Args getArgs (int nargs, char *argv[])
int main (int nargs, char *argv[])

Function Documentation

◆ getArgs()

Args getArgs ( int nargs,
char * argv[] )

Definition at line 16 of file test_lwtnn_fastgraph.cxx.

16 {
17 Args args;
18 if (nargs != 1) return args;
19 args.nn_file = argv[1];
20 return args;
21}

◆ main()

int main ( int nargs,
char * argv[] )

Definition at line 23 of file test_lwtnn_fastgraph.cxx.

23 {
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}
Args getArgs(int nargs, char *argv[])