triton_utils.h
Go to the documentation of this file.
1 #ifndef NuSonic_Triton_triton_utils
2 #define NuSonic_Triton_triton_utils
3 
5 
6 #include <string>
7 #include <string_view>
8 #include <vector>
9 #include <unordered_set>
10 
11 #include "grpc_client.h"
12 
13 namespace triton_utils {
14 
16 
17  template <typename C>
18  std::string printColl(const C& coll, const std::string& delim = ", ");
19 
20  //helper to turn triton error into exception
21  void throwIfError(const Error& err, std::string_view msg);
22 
23  //helper to turn triton error into warning
24  bool warnIfError(const Error& err, std::string_view msg);
25 
26 } // namespace triton_utils
27 
28 #endif
string delim()
Definition: fcldump.cxx:40
void msg(const char *fmt,...)
Definition: message.cpp:107
std::string printColl(const C &coll, const std::string &delim)
Definition: triton_utils.cc:11
std::string string
Definition: nybbler.cc:12
bool warnIfError(const Error &err, std::string_view msg)
Definition: triton_utils.cc:27
void throwIfError(const Error &err, std::string_view msg)
Definition: triton_utils.cc:22
nvidia::inferenceserver::client::Error Error
Definition: triton_utils.h:15
void err(const char *fmt,...)
Definition: message.cpp:226