Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OnnxMlpack.cpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file OnnxMlpack.cpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2023 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
11 
12 #include <pybind11/pybind11.h>
13 #include <pybind11/stl.h>
14 
15 namespace py = pybind11;
16 
17 using namespace ActsExamples;
18 using namespace Acts;
19 
20 namespace Acts::Python {
21 
22 void addOnnxMlpack(Context& ctx) {
23  auto [m, mex, onnx] = ctx.get("main", "examples", "onnx");
24  auto mlpack = mex.def_submodule("_mlpack");
25 
28  "AmbiguityResolutionMLDBScanAlgorithm", inputTracks, inputDuplicateNN,
29  outputTracks, nMeasurementsMin, epsilonDBScan, minPointsDBScan);
30 }
31 } // namespace Acts::Python