MCPcopy Create free account
hub / github.com/apache/singa / VecToStr

Function VecToStr

include/singa/utils/string.h:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55template <typename T>
56inline std::string VecToStr(const std::vector<T>& in) {
57 std::string out = "(";
58
59 for (auto x : in) {
60 out += std::to_string(x) + ", ";
61 }
62 out += ")";
63 return out;
64}
65
66/**
67 * Tokenize a string.

Callers 1

AddMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected