| 1742 | } |
| 1743 | |
| 1744 | std::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 | |
| 1749 | AllocationPtr AllocatorFacade::Alloc(const Place& place, size_t size) { |
| 1750 | return GetPrivate()->GetAllocator(place, size)->Allocate(size); |