|
ACTS
Experiment-independent tracking
|
Graph construction using PyTorch metric learning. More...
#include <ActsPlugins/Gnn/TorchMetricLearning.hpp>
Classes | |
| struct | Config |
| Configuration struct for Torch metric learning. More... | |
Public Member Functions | |
| TorchMetricLearning (const Config &cfg, std::unique_ptr< const Acts::Logger > logger) | |
| Constructor. | |
| Config | config () const |
| Get the configuration. | |
| PipelineTensors | operator() (std::vector< float > &inputValues, std::size_t numNodes, const std::vector< std::uint64_t > &moduleIds, const ExecutionContext &execContext={}) override |
| Perform the graph construction. | |
Graph construction using PyTorch metric learning.
| ActsPlugins::TorchMetricLearning::TorchMetricLearning | ( | const Config & | cfg, |
| std::unique_ptr< const Acts::Logger > | logger ) |
Constructor.
| cfg | Configuration parameters |
| logger | Logging instance |
| Config ActsPlugins::TorchMetricLearning::config | ( | ) | const |
Get the configuration.
|
overridevirtual |
Perform the graph construction.
| inputValues | Flattened input data |
| numNodes | Number of nodes. inputValues.size() / numNodes then gives the number of features |
| moduleIds | Module IDs of the features (used for module-map-like graph construction) |
| execContext | Device & stream information |
Implements ActsPlugins::GraphConstructionBase.