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

Function AllocShared

paddle/phi/core/memory/malloc.cc:24–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace paddle::memory {
23
24std::shared_ptr<Allocation> AllocShared(const Place& place, size_t size) {
25 return allocation::AllocatorFacade::Instance().AllocShared(place, size);
26}
27
28AllocationPtr Alloc(const Place& place, size_t size) {
29 return allocation::AllocatorFacade::Instance().Alloc(place, size);

Callers 11

allocateMethod · 0.70
mutable_dataMethod · 0.50
mutable_dataMethod · 0.50
allocateMethod · 0.50
resize.hFile · 0.50
MiniBatchGpuPackMethod · 0.50
Tensor2PinnedFunction · 0.50
DeepCopyVariableFunction · 0.50
ReloadMethod · 0.50
OffloadMethod · 0.50

Calls 2

InstanceFunction · 0.85
AllocSharedMethod · 0.45

Tested by

no test coverage detected