1 #ifndef HeterogeneousCore_SonicTriton_triton_utils 2 #define HeterogeneousCore_SonicTriton_triton_utils 10 #include <unordered_set> 12 #include "grpc_client.h" 18 template <
typename DT>
30 return dtype == inference::DataType::TYPE_BOOL
or dtype == inference::DataType::TYPE_STRING;
34 return dtype == inference::DataType::TYPE_UINT8;
38 return dtype == inference::DataType::TYPE_UINT16
or dtype == inference::DataType::TYPE_FP16;
42 return dtype == inference::DataType::TYPE_UINT32;
46 return dtype == inference::DataType::TYPE_UINT64;
50 return dtype == inference::DataType::TYPE_INT8;
54 return dtype == inference::DataType::TYPE_INT16;
58 return dtype == inference::DataType::TYPE_INT32;
62 return dtype == inference::DataType::TYPE_INT64;
66 return dtype == inference::DataType::TYPE_FP32;
70 return dtype == inference::DataType::TYPE_FP64;
75 #define TRITON_THROW_IF_ERROR(X, MSG) \ 77 triton::client::Error err = (X); \ 79 throw TritonException("TritonFailure") << (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
std::string printColl(const C &coll, const std::string &delim=", ")