![]() |
Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Plugins/ExaTrkX/include/Acts/Plugins/ExaTrkX/OnnxMetricLearning.hpp>
Inheritance diagram for Acts::OnnxMetricLearning:
Collaboration diagram for Acts::OnnxMetricLearning:Classes | |
| struct | Config |
Public Member Functions | |
| OnnxMetricLearning (const Config &cfg, std::unique_ptr< const Logger > logger) | |
| ~OnnxMetricLearning () | |
| std::tuple< std::any, std::any > | operator() (std::vector< float > &inputValues, std::size_t numNodes, int deviceHint=-1) override |
| Config | config () const |
Public Member Functions inherited from Acts::GraphConstructionBase | |
| virtual | ~GraphConstructionBase ()=default |
Private Member Functions | |
| void | buildEdgesWrapper (std::vector< float > &embedFeatures, std::vector< int64_t > &edgeList, int64_t numSpacepoints, const Logger &logger) const |
| const auto & | logger () const |
Private Attributes | |
| std::unique_ptr< const Acts::Logger > | m_logger |
| Config | m_cfg |
| std::unique_ptr< Ort::Env > | m_env |
| std::unique_ptr< Ort::Session > | m_model |
Definition at line 24 of file OnnxMetricLearning.hpp.
View newest version in sPHENIX GitHub at line 24 of file OnnxMetricLearning.hpp
| Acts::OnnxMetricLearning::OnnxMetricLearning | ( | const Config & | cfg, |
| std::unique_ptr< const Logger > | logger | ||
| ) |
Definition at line 20 of file OnnxMetricLearning.cpp.
View newest version in sPHENIX GitHub at line 20 of file OnnxMetricLearning.cpp
References m_cfg, m_env, m_model, and Acts::OnnxMetricLearning::Config::modelPath.
| Acts::OnnxMetricLearning::~OnnxMetricLearning | ( | ) |
Definition at line 35 of file OnnxMetricLearning.cpp.
View newest version in sPHENIX GitHub at line 35 of file OnnxMetricLearning.cpp
|
private |
Definition at line 37 of file OnnxMetricLearning.cpp.
View newest version in sPHENIX GitHub at line 37 of file OnnxMetricLearning.cpp
References Acts::ACTS_VERBOSE(), Acts::detail::buildEdges(), Acts::OnnxMetricLearning::Config::embeddingDim, Acts::OnnxMetricLearning::Config::knnVal, m_cfg, ckf::options, and Acts::OnnxMetricLearning::Config::rVal.
Referenced by operator()().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 41 of file OnnxMetricLearning.hpp.
View newest version in sPHENIX GitHub at line 41 of file OnnxMetricLearning.hpp
References m_cfg.
|
inlineprivate |
Definition at line 49 of file OnnxMetricLearning.hpp.
View newest version in sPHENIX GitHub at line 49 of file OnnxMetricLearning.hpp
References m_logger.
Referenced by operator()().
Here is the caller graph for this function:
|
overridevirtual |
Perform the graph construction
| inputValues | Flattened input data |
| numNodes | Number of nodes. inputValues.size() / numNodes then gives the number of features |
| deviceHint | Which GPU to pick. Not relevant for CPU-only builds |
Implements Acts::GraphConstructionBase.
Definition at line 59 of file OnnxMetricLearning.cpp.
View newest version in sPHENIX GitHub at line 59 of file OnnxMetricLearning.cpp
References ACTS_DEBUG, Acts::ACTS_VERBOSE(), buildEdgesWrapper(), Acts::OnnxMetricLearning::Config::embeddingDim, i, logger(), m_cfg, m_model, testing::internal::move(), runSessionWithIoBinding(), and Acts::OnnxMetricLearning::Config::spacepointFeatures.
Here is the call graph for this function:
|
private |
Definition at line 51 of file OnnxMetricLearning.hpp.
View newest version in sPHENIX GitHub at line 51 of file OnnxMetricLearning.hpp
Referenced by buildEdgesWrapper(), config(), OnnxMetricLearning(), and operator()().
|
private |
Definition at line 52 of file OnnxMetricLearning.hpp.
View newest version in sPHENIX GitHub at line 52 of file OnnxMetricLearning.hpp
Referenced by OnnxMetricLearning().
|
private |
Definition at line 48 of file OnnxMetricLearning.hpp.
View newest version in sPHENIX GitHub at line 48 of file OnnxMetricLearning.hpp
Referenced by logger().
|
private |
Definition at line 53 of file OnnxMetricLearning.hpp.
View newest version in sPHENIX GitHub at line 53 of file OnnxMetricLearning.hpp
Referenced by OnnxMetricLearning(), and operator()().