SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
OnnxPlugin.cpp
Go to the documentation of this file.
1
22
23namespace SourceXtractor {
24
27
29 return "MLMeasurementPlugin";
30}
31
33 plugin_api.getTaskFactoryRegistry().registerTaskFactory<OnnxTaskFactory, OnnxProperty>();
34 // Note that we do not now the output yet, so we do not register any columns
35
36 plugin_api.getOutputRegistry().registerColumnConverter<OnnxProperty, int>(
37 "ml_measurment_flags",
38 [](const OnnxProperty&) {
39 return 0; // Dummy property for now to avoid crash
40 },
41 "",
42 "flags"
43 );
44 plugin_api.getOutputRegistry().enableOutput<OnnxProperty>("MLMeasurement", true);
45}
46
47} // end of namespace SourceXtractor
static Logging getLogger(const std::string &name="")
void registerPlugin(PluginAPI &plugin_api) override
std::string getIdString() const override
This interface is given to the plugin to let it access object instances from the framework.
Definition PluginAPI.h:40
Elements::Logging onnx_logger
Logger for the ONNX plugin.
static StaticPlugin< OnnxPlugin > onnx_plugin