Go to the documentation of this file.
8 #include "lwtnn/LightweightNeuralNetwork.hh"
9 #include "lwtnn/parse_json.hh"
31 : fileName_(iConfig.getParameter<
edm::FileInPath>(
"fileName")) {
40 descriptions.
add(
"lwtnnESProducer", desc);
46 return std::make_unique<lwt::LightweightNeuralNetwork>(
config.inputs,
config.layers,
config.outputs);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::unique_ptr< lwt::LightweightNeuralNetwork > produce(const TrackingComponentsRecord &iRecord)
~LwtnnESProducer() override=default
edm::FileInPath fileName_
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
LwtnnESProducer(const edm::ParameterSet &iConfig)
std::string fullPath() const