1 #ifndef HeterogeneousCore_SonicTriton_TritonService 2 #define HeterogeneousCore_SonicTriton_TritonService 8 #include <unordered_set> 9 #include <unordered_map> 14 #include "grpc_client.h" 20 class PathsAndConsumesOfModulesBase;
22 class ModuleDescription;
85 std::unordered_set<std::string>
models;
123 template <
typename LOG>
135 std::unordered_map<std::string, Model>
models_;
std::unordered_map< std::string, Model > models_
const std::string & pid() const
std::unordered_set< unsigned > modules
std::unordered_map< std::string, Model > unservedModels_
void postModuleConstruction(edm::ModuleDescription const &)
Server(const std::string &name_, const std::string &url_, TritonServerType type_)
std::string to_string(const V &value)
unsigned currentModuleId_
Model(const std::string &path_="")
triton::client::SslOptions sslOptions
std::unordered_set< std::string > servers
TritonService(const edm::ParameterSet &pset, edm::ActivityRegistry &areg)
static const std::string fallbackAddress
Module(const std::string &model_)
void addModel(const std::string &modelName, const std::string &path)
Server(const edm::ParameterSet &pset)
FallbackOpts fallbackOpts_
std::unordered_set< std::string > models
FallbackOpts(const edm::ParameterSet &pset)
void preBeginJob(edm::PathsAndConsumesOfModulesBase const &, edm::ProcessContext const &)
void printFallbackServerLog() const
void preModuleConstruction(edm::ModuleDescription const &)
std::string createGlobalIdentifier(bool binary=false)
void preModuleDestruction(edm::ModuleDescription const &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::unordered_map< unsigned, Module > modules_
Server serverInfo(const std::string &model, const std::string &preferred="") const
std::unordered_map< std::string, Server > servers_
static const std::string fallbackName