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

Method AsProto

tensorflow/core/framework/tensor_slice.cc:144–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void TensorSlice::AsProto(TensorSliceProto* proto) const {
145 for (int d = 0; d < dims(); ++d) {
146 TensorSliceProto::Extent* e = proto->add_extent();
147 // We only need to record the explicit slice for non-full slices
148 if (!IsFullAt(d)) {
149 e->set_start(starts_[d]);
150 e->set_length(lengths_[d]);
151 }
152 }
153}
154
155string TensorSlice::DebugString() const {
156 string buffer;

Callers

nothing calls this directly

Calls 3

dimsFunction · 0.85
set_startMethod · 0.80
set_lengthMethod · 0.80

Tested by

no test coverage detected