ATLAS Offline Software
Classes | Functions
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  {
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 }
CaloLCW_tf.nargs
nargs
Definition: CaloLCW_tf.py:26
LArCellConditions.argv
argv
Definition: LArCellConditions.py:112
Args
Definition: test_lwtnn_fastgraph.cxx:12
lwt::atlas::FastGraph
Definition: FastGraph.h:33
lwtDev::parse_json_graph
GraphConfig parse_json_graph(std::istream &json)
Definition: parse_json.cxx:71
getArgs
Args getArgs(int nargs, char *argv[])
Definition: test_lwtnn_fastgraph.cxx:16
python.CaloScaleNoiseConfig.args
args
Definition: CaloScaleNoiseConfig.py:80