MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / join_strings

Function join_strings

paddle/utils/string/string_helper.h:173–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171
172template <class Container>
173std::string join_strings(const Container& strs, char delim) {
174 std::string str;
175
176 size_t i = 0;
177 for (auto& elem : strs) {
178 if (i > 0) {
179 str += delim;
180 }
181
182 std::stringstream ss;
183 ss << elem;
184 str += ss.str();
185 ++i;
186 }
187
188 return str;
189}
190
191template <class Container>
192std::string join_strings(const Container& strs, const std::string& delim) {

Callers 15

EinsumInferMetaFunction · 0.85
arg_map_context.ccFile · 0.85
CheckAlltoAllShapeMethod · 0.85
CheckAlltoAllShapeMethod · 0.85
FlattenToStringFunction · 0.85
PerformTileAndReductionFunction · 0.85
GlobalInfoFunction · 0.85
InferLabelShapeFunction · 0.85
ParseEinsumEquationFunction · 0.85
PerformTransposeFunction · 0.85

Calls 2

funcFunction · 0.50
strMethod · 0.45

Tested by 1

TESTFunction · 0.68