MCPcopy Create free account
hub / github.com/apache/singa / CopyDataToFrom

Method CopyDataToFrom

src/core/device/device.cc:111–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void Device::CopyDataToFrom(Block* dst, Block* src, size_t nBytes,
112 CopyDirection direct, int dst_offset,
113 int src_offset, Context* ctx) {
114 this->CopyToFrom(reinterpret_cast<char*>(dst->mutable_data()) + dst_offset,
115 reinterpret_cast<const char*>(src->data()) + src_offset,
116 nBytes, direct, ctx);
117}
118
119void Device::CopyDataFromHostPtr(Block* dst, const void* src, size_t nBytes,
120 size_t dst_offset, Context* ctx) {

Callers 8

forwardMethod · 0.45
backwardMethod · 0.45
copy_data_to_fromFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
CopyDataToFromFunction · 0.45
RepeatDataToFromFunction · 0.45
copy_data_to_fromFunction · 0.45

Calls 3

mutable_dataMethod · 0.80
CopyToFromMethod · 0.45
dataMethod · 0.45

Tested by 2

TESTFunction · 0.36
TESTFunction · 0.36