Go to the documentation of this file. 1 #ifndef HeterogeneousCore_SonicTriton_TritonService
2 #define HeterogeneousCore_SonicTriton_TritonService
7 #include <unordered_set>
8 #include <unordered_map>
13 #include "grpc_client.h"
19 class PathsAndConsumesOfModulesBase;
21 class ModuleDescription;
58 std::to_string(
pset.getUntrackedParameter<unsigned>(
"port"))),
77 std::unordered_set<std::string>
models;
122 std::unordered_map<std::string, Model>
models_;
FallbackOpts fallbackOpts_
std::unordered_set< std::string > servers
std::unordered_set< unsigned > modules
Server(const std::string &name_, const std::string &url_, TritonServerType type_)
static const std::string fallbackAddress
std::unordered_map< std::string, Model > models_
unsigned currentModuleId_
std::unordered_map< unsigned, Module > modules_
void preModuleDestruction(edm::ModuleDescription const &)
Module(const std::string &model_)
triton::client::SslOptions sslOptions
void preModuleConstruction(edm::ModuleDescription const &)
std::unordered_map< std::string, Model > unservedModels_
static const std::string fallbackName
Model(const std::string &path_="")
std::unordered_set< std::string > models
void addModel(const std::string &modelName, const std::string &path)
void preBeginJob(edm::PathsAndConsumesOfModulesBase const &, edm::ProcessContext const &)
FallbackOpts(const edm::ParameterSet &pset)
Server serverInfo(const std::string &model, const std::string &preferred="") const
TritonService(const edm::ParameterSet &pset, edm::ActivityRegistry &areg)
const std::string & pid() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Server(const edm::ParameterSet &pset)
void postModuleConstruction(edm::ModuleDescription const &)
std::unordered_map< std::string, Server > servers_