CMS 3D CMS Logo

Functions
triton_utils Namespace Reference

Functions

template<typename DT >
bool checkType (inference::DataType dtype)
 
template<typename C >
std::string printColl (const C &coll, const std::string &delim=", ")
 

Function Documentation

◆ checkType()

template<typename DT >
bool triton_utils::checkType ( inference::DataType  dtype)

Definition at line 19 of file triton_utils.h.

19  {
20  return false;
21  }

◆ printColl()

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

Definition at line 9 of file triton_utils.cc.

References filterCSVwithJSON::copy, mps_fire::end, and mps_check::msg.

Referenced by TritonClient::TritonClient().

9  {
10  if (coll.empty())
11  return "";
12  std::stringstream msg;
13  //avoid trailing delim
14  std::copy(std::begin(coll), std::end(coll), std::experimental::make_ostream_joiner(msg, delim));
15  return msg.str();
16  }
tuple msg
Definition: mps_check.py:285