10 #include "lwtnn/parse_json.hh"
11 #include "lwtnn/LightweightGraph.hh"
12 #include "lwtnn/NanReplacer.hh"
14 #define BOOST_BIND_GLOBAL_PLACEHOLDERS // Needed to silence Boost pragma message
15 #include <boost/property_tree/json_parser.hpp>
16 #include <boost/property_tree/exceptions.hpp>
26 std::map<std::string,std::string> remap_scalar,
28 float default_output_value):
33 if (nn_path.size() == 0) {
34 throw std::runtime_error(
"no file found at '" + nn_file_name +
"'");
36 std::ifstream input_stream(nn_path);
39 if (
config.inputs.size() > 1) {
40 throw std::logic_error(
"DL2 doesn't support multiple inputs");
44 config, flip_config, std::move(remap_scalar), track_link_type);
45 options.default_output_value = default_output_value;
61 m_dl2->decorate(btag);
72 return m_dl2->getDataDependencyNames();