ATLAS Offline Software
Loading...
Searching...
No Matches
TFCSNetworkFactory.h
Go to the documentation of this file.
1
15#ifndef TFCSNETWORKFACTORY_H
16#define TFCSNETWORKFACTORY_H
17
19#include <memory>
20#include <string>
21#include <vector>
22#include <filesystem>
23
25public:
26 // Unspecified TFCSGANLWTNNHandler or TFCSSimpleLWTNNHandler, take a guess
47 static std::unique_ptr<VNetworkBase> create(std::string input);
48 // Specified TFCSGANLWTNNHandler or TFCSSimpleLWTNNHandler
69 static std::unique_ptr<VNetworkBase> create(std::string input,
70 bool graph_form);
71
81 static std::unique_ptr<VNetworkBase> create(std::vector<char> const &input);
82
92 static std::unique_ptr<VNetworkBase>
93 create(std::vector<char> const &vector_input, std::string string_input);
105 static std::unique_ptr<VNetworkBase>
106 create(std::vector<char> const &vector_input, std::string string_input,
107 bool graph_form);
108
109private:
119 static void resolveGlobs(std::string &filename);
120
128 static bool isOnnxFile(std::string const &filename);
129};
130
131#endif // TFCSNETWORKFACTORY_H
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration.
static bool isOnnxFile(std::string const &filename)
Check if a filename seems to be an onnx file.
static std::unique_ptr< VNetworkBase > create(std::string input)
Given a string, make a network.
static void resolveGlobs(std::string &filename)
If the filepath ends in .