Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Plugins/ExaTrkX/include/Acts/Plugins/ExaTrkX/OnnxEdgeClassifier.hpp>
Classes | |
struct | Config |
Public Member Functions | |
OnnxEdgeClassifier (const Config &cfg, std::unique_ptr< const Logger > logger) | |
~OnnxEdgeClassifier () | |
std::tuple< std::any, std::any, std::any > | operator() (std::any nodes, std::any edges, int deviceHint=-1) override |
Config | config () const |
Public Member Functions inherited from Acts::EdgeClassificationBase | |
virtual | ~EdgeClassificationBase ()=default |
Private Member Functions | |
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 |
std::string | m_inputNameNodes |
std::string | m_inputNameEdges |
std::string | m_outputNameScores |
Definition at line 24 of file OnnxEdgeClassifier.hpp.
View newest version in sPHENIX GitHub at line 24 of file OnnxEdgeClassifier.hpp
Acts::OnnxEdgeClassifier::OnnxEdgeClassifier | ( | const Config & | cfg, |
std::unique_ptr< const Logger > | logger | ||
) |
Definition at line 20 of file OnnxEdgeClassifier.cpp.
View newest version in sPHENIX GitHub at line 20 of file OnnxEdgeClassifier.cpp
References m_cfg, m_env, m_inputNameEdges, m_inputNameNodes, m_model, m_outputNameScores, and Acts::OnnxEdgeClassifier::Config::modelPath.
Acts::OnnxEdgeClassifier::~OnnxEdgeClassifier | ( | ) |
Definition at line 44 of file OnnxEdgeClassifier.cpp.
View newest version in sPHENIX GitHub at line 44 of file OnnxEdgeClassifier.cpp
|
inline |
Definition at line 37 of file OnnxEdgeClassifier.hpp.
View newest version in sPHENIX GitHub at line 37 of file OnnxEdgeClassifier.hpp
References m_cfg.
|
inlineprivate |
Definition at line 41 of file OnnxEdgeClassifier.hpp.
View newest version in sPHENIX GitHub at line 41 of file OnnxEdgeClassifier.hpp
References m_logger.
|
overridevirtual |
Perform edge classification
nodes | Node tensor with shape (n_nodes, n_node_features) |
edges | Edge-index tensor with shape (2, n_edges) |
deviceHint | Which GPU to pick. Not relevant for CPU-only builds |
Implements Acts::EdgeClassificationBase.
Definition at line 46 of file OnnxEdgeClassifier.cpp.
View newest version in sPHENIX GitHub at line 46 of file OnnxEdgeClassifier.cpp
References ACTS_DEBUG, Acts::OnnxEdgeClassifier::Config::cut, m_cfg, m_inputNameEdges, m_inputNameNodes, m_model, m_outputNameScores, testing::internal::move(), and runSessionWithIoBinding().
|
private |
Definition at line 43 of file OnnxEdgeClassifier.hpp.
View newest version in sPHENIX GitHub at line 43 of file OnnxEdgeClassifier.hpp
Referenced by config(), OnnxEdgeClassifier(), and operator()().
|
private |
Definition at line 45 of file OnnxEdgeClassifier.hpp.
View newest version in sPHENIX GitHub at line 45 of file OnnxEdgeClassifier.hpp
Referenced by OnnxEdgeClassifier().
|
private |
Definition at line 49 of file OnnxEdgeClassifier.hpp.
View newest version in sPHENIX GitHub at line 49 of file OnnxEdgeClassifier.hpp
Referenced by OnnxEdgeClassifier(), and operator()().
|
private |
Definition at line 48 of file OnnxEdgeClassifier.hpp.
View newest version in sPHENIX GitHub at line 48 of file OnnxEdgeClassifier.hpp
Referenced by OnnxEdgeClassifier(), and operator()().
|
private |
Definition at line 40 of file OnnxEdgeClassifier.hpp.
View newest version in sPHENIX GitHub at line 40 of file OnnxEdgeClassifier.hpp
Referenced by logger().
|
private |
Definition at line 46 of file OnnxEdgeClassifier.hpp.
View newest version in sPHENIX GitHub at line 46 of file OnnxEdgeClassifier.hpp
Referenced by OnnxEdgeClassifier(), and operator()().
|
private |
Definition at line 50 of file OnnxEdgeClassifier.hpp.
View newest version in sPHENIX GitHub at line 50 of file OnnxEdgeClassifier.hpp
Referenced by OnnxEdgeClassifier(), and operator()().