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

Method DebugString

tensorflow/core/framework/tensor_slice.cc:155–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155string TensorSlice::DebugString() const {
156 string buffer;
157 bool first = true;
158 for (int d = 0; d < dims(); ++d) {
159 if (!first) {
160 buffer.append(":");
161 }
162 if (IsFullAt(d)) {
163 buffer.append("-");
164 } else {
165 strings::StrAppend(&buffer, starts_[d], ",", lengths_[d]);
166 }
167 first = false;
168 }
169 return buffer;
170}
171
172bool TensorSlice::Intersect(const TensorSlice& other,
173 TensorSlice* result) const {

Callers 1

SliceTensorShapeMethod · 0.45

Calls 3

dimsFunction · 0.85
StrAppendFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected