Typedefs | Functions
triton_utils Namespace Reference

Typedefs

using Error = nvidia::inferenceserver::client::Error
 

Functions

template<typename C >
std::string printColl (const C &coll, const std::string &delim)
 
void throwIfError (const Error &err, std::string_view msg)
 
bool warnIfError (const Error &err, std::string_view msg)
 

Typedef Documentation

using triton_utils::Error = typedef nvidia::inferenceserver::client::Error

Definition at line 15 of file triton_utils.h.

Function Documentation

template<typename C >
std::string triton_utils::printColl ( const C coll,
const std::string delim 
)

Definition at line 11 of file triton_utils.cc.

11  {
12  if (coll.empty())
13  return "";
14  using std::begin;
15  using std::end;
16  std::stringstream msg;
17  //avoid trailing delim
18  std::copy(begin(coll), end(coll), std::experimental::make_ostream_joiner(msg, delim));
19  return msg.str();
20  }
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
string delim()
Definition: fcldump.cxx:40
void msg(const char *fmt,...)
Definition: message.cpp:107
T copy(T const &v)
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
Definition: StdUtils.h:72
void triton_utils::throwIfError ( const Error err,
std::string_view  msg 
)

Definition at line 22 of file triton_utils.cc.

22  {
23  if (!err.IsOk())
24  throw cet::exception("TritonServerFailure") << msg << ": " << err;
25  }
void msg(const char *fmt,...)
Definition: message.cpp:107
void err(const char *fmt,...)
Definition: message.cpp:226
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
bool triton_utils::warnIfError ( const Error err,
std::string_view  msg 
)

Definition at line 27 of file triton_utils.cc.

27  {
28  if (!err.IsOk())
29  MF_LOG_WARNING("TritonServerWarning") << msg << ": " << err;
30  return err.IsOk();
31  }
void msg(const char *fmt,...)
Definition: message.cpp:107
void err(const char *fmt,...)
Definition: message.cpp:226
#define MF_LOG_WARNING(category)