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

Method FindTensorSlice

tensorflow/core/util/tensor_slice_reader.cc:193–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193const TensorSliceSet* TensorSliceReader::FindTensorSlice(
194 const string& name, const TensorSlice& slice,
195 std::vector<std::pair<TensorSlice, string>>* details) const {
196 const TensorSliceSet* tss = gtl::FindPtrOrNull(tensors_, name);
197 if (tss && !tss->QueryMeta(slice, details)) {
198 return nullptr;
199 }
200 return tss;
201}
202
203TensorSliceReader::~TensorSliceReader() { gtl::STLDeleteValues(&tensors_); }
204

Callers

nothing calls this directly

Calls 2

FindPtrOrNullFunction · 0.85
QueryMetaMethod · 0.80

Tested by

no test coverage detected