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

Method GetReader

tensorflow/core/util/tensor_slice_reader_cache.cc:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33const TensorSliceReader* TensorSliceReaderCacheWrapper::GetReader(
34 const string& filepattern,
35 TensorSliceReader::OpenTableFunction open_function,
36 int preferred_shard) const {
37 mutex_lock l(mu_);
38 if (!cache_) {
39 cache_ = new TensorSliceReaderCache;
40 }
41 return cache_->GetReader(filepattern, std::move(open_function),
42 preferred_shard);
43}
44
45TensorSliceReaderCache::TensorSliceReaderCache() {}
46

Callers 2

RestoreTensorFunction · 0.80

Calls 10

notify_allMethod · 0.80
findMethod · 0.45
endMethod · 0.45
waitMethod · 0.45
insertMethod · 0.45
unlockMethod · 0.45
lockMethod · 0.45
okMethod · 0.45
statusMethod · 0.45
eraseMethod · 0.45

Tested by 1