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

Method FreeBlock

src/core/device/device.cc:104–109  ·  view source on GitHub ↗

TODO(wangwei) return Block to the memory manager

Source from the content-addressed store, hash-verified

102
103// TODO(wangwei) return Block to the memory manager
104void Device::FreeBlock(Block* block) {
105 if (block != nullptr) {
106 Free(block->mutable_data());
107 delete block;
108 }
109}
110
111void Device::CopyDataToFrom(Block* dst, Block* src, size_t nBytes,
112 CopyDirection direct, int dst_offset,

Callers 6

TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
~TensorMethod · 0.80
tensor.ccFile · 0.80
FromProtoMethod · 0.80

Calls 1

mutable_dataMethod · 0.80

Tested by 3

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64