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

Method SetFullSlice

tensorflow/core/framework/tensor_slice.cc:123–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void TensorSlice::SetFullSlice(int dim) {
124 Clear();
125 starts_.reserve(dim);
126 lengths_.reserve(dim);
127 for (int d = 0; d < dim; ++d) {
128 starts_.push_back(0);
129 lengths_.push_back(kFullExtent);
130 }
131}
132
133void TensorSlice::Extend(int dim) {
134 int old_dim = dims();

Callers 4

IntersectMethod · 0.80
ComputeRelativeMethod · 0.80
TESTFunction · 0.80
DecodeTensorNameSliceFunction · 0.80

Calls 2

reserveMethod · 0.45
push_backMethod · 0.45

Tested by 1

TESTFunction · 0.64