MCPcopy Create free account
hub / github.com/alibaba/graph-learn / Load

Method Load

dynamic_graph_service/src/core/storage/sampler.cc:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void VertexSampler::Load(const act::BytesBuffer& buffer) {
57 auto data = buffer.get();
58 size_t entry_num = buffer.size() / sizeof(Entry);
59 assert(samples_.size() == 0);
60 samples_.resize(entry_num);
61 std::memcpy(&samples_[0], data, sizeof(Entry) * entry_num);
62}
63
64} // namespace storage
65} // namespace dgs

Callers 1

RunMethod · 0.45

Calls 2

getMethod · 0.45
sizeMethod · 0.45

Tested by 1

RunMethod · 0.36