MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / PrintArray

Function PrintArray

tensorflow/cc/framework/cc_op_gen.cc:156–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154
155template <typename T>
156string PrintArray(int64 num_elts, const T* array) {
157 string ret;
158 for (int64 i = 0; i < num_elts; ++i) {
159 if (i > 0) strings::StrAppend(&ret, ", ");
160 strings::StrAppend(&ret, array[i]);
161 }
162 return ret;
163}
164
165string PrintTensor(const TensorProto& tensor_proto) {
166 Tensor t(tensor_proto.dtype());

Callers 1

PrintTensorFunction · 0.70

Calls 1

StrAppendFunction · 0.50

Tested by

no test coverage detected