MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / Metadata

Method Metadata

paddle/phi/core/memory/allocation/memory_block.cc:150–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150MemoryBlock* MemoryBlock::Metadata() const {
151 return const_cast<MemoryBlock*>(reinterpret_cast<const MemoryBlock*>(
152 reinterpret_cast<const MemoryBlock::Desc*>(this) - 1));
153}
154
155} // namespace paddle::memory::detail

Callers 1

FreeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected