| 191 | } |
| 192 | |
| 193 | const 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 | |
| 203 | TensorSliceReader::~TensorSliceReader() { gtl::STLDeleteValues(&tensors_); } |
| 204 |
nothing calls this directly
no test coverage detected