MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / manage

Method manage

arm_compute/runtime/MemoryGroup.h:80–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80inline void MemoryGroup::manage(IMemoryManageable *obj)
81{
82 if (_memory_manager && (obj != nullptr))
83 {
84 ARM_COMPUTE_ERROR_ON(!_memory_manager->lifetime_manager());
85
86 // Defer registration to the first managed object
87 _memory_manager->lifetime_manager()->register_group(this);
88
89 // Associate this memory group with the tensor
90 obj->associate_memory_group(this);
91
92 // Start object lifetime
93 _memory_manager->lifetime_manager()->start_lifetime(obj);
94 }
95}
96
97inline void MemoryGroup::finalize_memory(IMemoryManageable *obj, IMemory &obj_memory, size_t size, size_t alignment)
98{

Callers

nothing calls this directly

Calls 4

lifetime_managerMethod · 0.80
register_groupMethod · 0.80
start_lifetimeMethod · 0.80

Tested by

no test coverage detected