11 #include "lwtnn/parse_json.hh"
12 #include "lwtnn/LightweightGraph.hh"
13 #include "lwtnn/NanReplacer.hh"
15 #define BOOST_BIND_GLOBAL_PLACEHOLDERS // Needed to silence Boost pragma message
16 #include <boost/property_tree/json_parser.hpp>
17 #include <boost/property_tree/exceptions.hpp>
27 std::map<std::string,std::string> remap_scalar,
29 float default_output_value):
34 if (nn_path.size() == 0) {
35 throw std::runtime_error(
"no file found at '" + nn_file_name +
"'");
37 std::ifstream input_stream(nn_path);
40 if (
config.inputs.size() > 1) {
41 throw std::logic_error(
"DL2 doesn't support multiple inputs");
45 config, flip_config, std::move(remap_scalar), track_link_type);
46 options.default_output_value = default_output_value;
62 m_dl2->decorate(btag);
73 return m_dl2->getDataDependencyNames();