MCPcopy Create free account
hub / github.com/Cambricon/mlu-ops / array2String

Function array2String

kernels/binary_op/binary_op_host.cpp:266–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266std::string array2String(int32_t dim_num, const int64_t *dims) {
267 std::string res;
268 res.push_back('[');
269 for (int i = 0; i < dim_num; i++) {
270 res.append(std::to_string(dims[i]));
271 if (i + 1 != dim_num) {
272 res.push_back(',');
273 }
274 }
275 res.push_back(']');
276 return res;
277}

Callers 1

binaryOpParamCheckFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected