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

Method AllocShared

paddle/phi/core/memory/allocation/allocator_facade.cc:1744–1747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1742}
1743
1744std::shared_ptr<phi::Allocation> AllocatorFacade::AllocShared(
1745 const Place& place, size_t size) {
1746 return std::shared_ptr<phi::Allocation>(Alloc(place, size));
1747}
1748
1749AllocationPtr AllocatorFacade::Alloc(const Place& place, size_t size) {
1750 return GetPrivate()->GetAllocator(place, size)->Allocate(size);

Callers 1

AllocSharedFunction · 0.45

Calls 1

AllocFunction · 0.50

Tested by

no test coverage detected