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

Method Get

tensorflow/core/util/tensor_slice_reader.cc:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 bool Get(const string& key, string* value) override {
53 std::unique_ptr<table::Iterator> iter(table_->NewIterator());
54 iter->Seek(key);
55 if (iter->Valid() && iter->key() == key) {
56 StringPiece v = iter->value();
57 value->assign(v.data(), v.size());
58 return true;
59 } else {
60 return false;
61 }
62 }
63
64 private:
65 RandomAccessFile* file_; // Owns.

Callers 1

LoadShardMethod · 0.45

Calls 8

NewIteratorMethod · 0.45
SeekMethod · 0.45
ValidMethod · 0.45
keyMethod · 0.45
valueMethod · 0.45
assignMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected