27 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);
37 lwt::GraphConfig
config = lwt::parse_json_graph(input_stream);
39 if (
config.inputs.size() > 1) {
40 throw std::logic_error(
"DL2 doesn't support multiple inputs");
43 config, flip_config, std::move(remap_scalar));
44 options.default_output_value = default_output_value;
Class providing the definition of the 4-vector interface.
template std::tuple< std::vector< FTagInputConfig >, std::vector< ConstituentsInputConfig >, FTagOptions > createGetterConfig< lwt::GraphConfig, lwt::OutputNodeConfig >(lwt::GraphConfig &config, FlipTagConfig flip_config, std::map< std::string, std::string > remap_scalar)