1 #ifndef HeterogeneousCore_SonicTriton_triton_utils 2 #define HeterogeneousCore_SonicTriton_triton_utils 11 #include <unordered_set> 13 #include "grpc_client.h" 19 template <
typename DT>
33 return dtype == inference::DataType::TYPE_BOOL
or dtype == inference::DataType::TYPE_STRING;
37 return dtype == inference::DataType::TYPE_UINT8;
41 return dtype == inference::DataType::TYPE_UINT16
or dtype == inference::DataType::TYPE_FP16;
45 return dtype == inference::DataType::TYPE_UINT32;
49 return dtype == inference::DataType::TYPE_UINT64;
53 return dtype == inference::DataType::TYPE_INT8;
57 return dtype == inference::DataType::TYPE_INT16;
61 return dtype == inference::DataType::TYPE_INT32;
65 return dtype == inference::DataType::TYPE_INT64;
69 return dtype == inference::DataType::TYPE_FP32;
73 return dtype == inference::DataType::TYPE_FP64;
78 #define TRITON_THROW_IF_ERROR(X, MSG, NOTIFY) \ 80 triton::client::Error err = (X); \ 82 throw TritonException("TritonFailure", NOTIFY) << (MSG) << (err.Message().empty() ? "" : ": " + err.Message()); \
bool checkType(inference::DataType dtype)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
void convertToWarning(const cms::Exception &e)
std::string printColl(const C &coll, const std::string &delim=", ")